1616from numba .core .datamodel import DataModelManager
1717from numba .core .types .containers import UniTuple
1818
19- from numba_dpex import config , utils
19+ from numba_dpex import utils
20+ from numba_dpex .core import config
2021from numba_dpex .core .exceptions import UnreachableError
2122from numba_dpex .core .runtime .context import DpexRTContext
2223from numba_dpex .core .types import USMNdArray
@@ -165,7 +166,7 @@ def _build_array_attr_arg( # pylint: disable=too-many-arguments
165166
166167 self ._build_arg (
167168 val = array_attr ,
168- ty = array_attr_ty ,
169+ typ = array_attr_ty ,
169170 arg_list = arg_list ,
170171 args_ty_list = args_ty_list ,
171172 arg_num = arg_num ,
@@ -193,14 +194,14 @@ def _build_unituple_member_arg( # pylint: disable=too-many-arguments
193194 )
194195
195196 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
197198 ): # pylint: disable=too-many-arguments
198199 """Stores the kernel arguments and the kernel argument types into
199200 arrays that will be passed to DPCTLQueue_SubmitRange.
200201
201202 Args:
202203 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
204205 enum and stored into the argument types list array
205206 arg_list: An LLVM IR Value array that stores the kernel arguments
206207 args_ty_list: An LLVM IR Value array that stores the
@@ -222,19 +223,19 @@ def _build_arg(
222223 )
223224 self .builder .store (val , kernel_arg_dst )
224225 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
226227 )
227228
228229 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
230231 ): # pylint: disable=too-many-arguments
231232 """Creates a list of LLVM Values for an unpacked complex kernel
232233 argument.
233234 """
234235 self ._build_array_attr_arg (
235236 array_val = val ,
236237 array_attr_pos = 0 ,
237- array_attr_ty = ty ,
238+ array_attr_ty = typ ,
238239 arg_list = arg_list ,
239240 args_ty_list = args_ty_list ,
240241 arg_num = arg_num ,
@@ -243,7 +244,7 @@ def _build_complex_arg(
243244 self ._build_array_attr_arg (
244245 array_val = val ,
245246 array_attr_pos = 1 ,
246- array_attr_ty = ty ,
247+ array_attr_ty = typ ,
247248 arg_list = arg_list ,
248249 args_ty_list = args_ty_list ,
249250 arg_num = arg_num ,
@@ -268,7 +269,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
268269 nullptr = self ._build_nullptr ()
269270 self ._build_arg (
270271 val = nullptr ,
271- ty = types .int64 ,
272+ typ = types .int64 ,
272273 arg_list = arg_list ,
273274 args_ty_list = args_ty_list ,
274275 arg_num = arg_num ,
@@ -278,7 +279,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
278279 nullptr = self ._build_nullptr ()
279280 self ._build_arg (
280281 val = nullptr ,
281- ty = types .int64 ,
282+ typ = types .int64 ,
282283 arg_list = arg_list ,
283284 args_ty_list = args_ty_list ,
284285 arg_num = arg_num ,
@@ -318,7 +319,7 @@ def _build_array_arg( # pylint: disable=too-many-arguments
318319 # kernel we always pass in a nullptr
319320 self ._build_arg (
320321 val = nullptr ,
321- ty = types .int64 ,
322+ typ = types .int64 ,
322323 arg_list = arg_list ,
323324 args_ty_list = args_ty_list ,
324325 arg_num = arg_num ,
0 commit comments