16
16
from numba .core .datamodel import DataModelManager
17
17
from numba .core .types .containers import UniTuple
18
18
19
- from numba_dpex import config , utils
19
+ from numba_dpex import utils
20
+ from numba_dpex .core import config
20
21
from numba_dpex .core .exceptions import UnreachableError
21
22
from numba_dpex .core .runtime .context import DpexRTContext
22
23
from numba_dpex .core .types import USMNdArray
@@ -165,7 +166,7 @@ def _build_array_attr_arg( # pylint: disable=too-many-arguments
165
166
166
167
self ._build_arg (
167
168
val = array_attr ,
168
- ty = array_attr_ty ,
169
+ typ = array_attr_ty ,
169
170
arg_list = arg_list ,
170
171
args_ty_list = args_ty_list ,
171
172
arg_num = arg_num ,
@@ -193,14 +194,14 @@ def _build_unituple_member_arg( # pylint: disable=too-many-arguments
193
194
)
194
195
195
196
def _build_arg (
196
- self , val , ty , arg_list , args_ty_list , arg_num
197
+ self , val , typ , arg_list , args_ty_list , arg_num
197
198
): # pylint: disable=too-many-arguments
198
199
"""Stores the kernel arguments and the kernel argument types into
199
200
arrays that will be passed to DPCTLQueue_SubmitRange.
200
201
201
202
Args:
202
203
val: An LLVM IR Value that will be stored into the arguments array
203
- ty : A Numba type that will be converted to a DPCTLKernelArgType
204
+ typ : A Numba type that will be converted to a DPCTLKernelArgType
204
205
enum and stored into the argument types list array
205
206
arg_list: An LLVM IR Value array that stores the kernel arguments
206
207
args_ty_list: An LLVM IR Value array that stores the
@@ -222,19 +223,19 @@ def _build_arg(
222
223
)
223
224
self .builder .store (val , kernel_arg_dst )
224
225
self .builder .store (
225
- numba_type_to_dpctl_typenum (self .context , ty ), kernel_arg_ty_dst
226
+ numba_type_to_dpctl_typenum (self .context , typ ), kernel_arg_ty_dst
226
227
)
227
228
228
229
def _build_complex_arg (
229
- self , val , ty , arg_list , args_ty_list , arg_num
230
+ self , val , typ , arg_list , args_ty_list , arg_num
230
231
): # pylint: disable=too-many-arguments
231
232
"""Creates a list of LLVM Values for an unpacked complex kernel
232
233
argument.
233
234
"""
234
235
self ._build_array_attr_arg (
235
236
array_val = val ,
236
237
array_attr_pos = 0 ,
237
- array_attr_ty = ty ,
238
+ array_attr_ty = typ ,
238
239
arg_list = arg_list ,
239
240
args_ty_list = args_ty_list ,
240
241
arg_num = arg_num ,
@@ -243,7 +244,7 @@ def _build_complex_arg(
243
244
self ._build_array_attr_arg (
244
245
array_val = val ,
245
246
array_attr_pos = 1 ,
246
- array_attr_ty = ty ,
247
+ array_attr_ty = typ ,
247
248
arg_list = arg_list ,
248
249
args_ty_list = args_ty_list ,
249
250
arg_num = arg_num ,
@@ -268,7 +269,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
268
269
nullptr = self ._build_nullptr ()
269
270
self ._build_arg (
270
271
val = nullptr ,
271
- ty = types .int64 ,
272
+ typ = types .int64 ,
272
273
arg_list = arg_list ,
273
274
args_ty_list = args_ty_list ,
274
275
arg_num = arg_num ,
@@ -278,7 +279,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
278
279
nullptr = self ._build_nullptr ()
279
280
self ._build_arg (
280
281
val = nullptr ,
281
- ty = types .int64 ,
282
+ typ = types .int64 ,
282
283
arg_list = arg_list ,
283
284
args_ty_list = args_ty_list ,
284
285
arg_num = arg_num ,
@@ -318,7 +319,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
318
319
# kernel we always pass in a nullptr
319
320
self ._build_arg (
320
321
val = nullptr ,
321
- ty = types .int64 ,
322
+ typ = types .int64 ,
322
323
arg_list = arg_list ,
323
324
args_ty_list = args_ty_list ,
324
325
arg_num = arg_num ,
0 commit comments