Skip to content

Commit 5667cf8

Browse files
atmnpgmarkall
andauthored
[Refactor][NFC] Vendor-in numba.cpython modules for future CUDA-specific changes (#493)
This is a bulk change that vendors in all of the modules in numba.cpython without tests to prevent blocking of other components that need to be vendored in. All of the relevant tests will be vendored in gradually in other PRs once it becomes a higher priority to ensure comprehensive test coverage. --------- Co-authored-by: Graham Markall <[email protected]>
1 parent cf66979 commit 5667cf8

File tree

18 files changed

+2206
-37
lines changed

18 files changed

+2206
-37
lines changed

numba_cuda/numba/cuda/core/inline_closurecall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ def length_of_iterator(typingctx, val):
10881088

10891089
def codegen(context, builder, sig, args):
10901090
(value,) = args
1091-
from numba.cpython.rangeobj import range_impl_map
1091+
from numba.cuda.cpython.rangeobj import range_impl_map
10921092

10931093
iter_type = range_impl_map[val_type][1]
10941094
iterobj = cgutils.create_struct_proxy(iter_type)(

numba_cuda/numba/cuda/core/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from numba.cuda.utils import _lazy_pformat
2525
from numba.cuda.core.byteflow import Flow, AdaptDFA, AdaptCFA, BlockKind
2626
from numba.cuda.core.unsafe import eh
27-
from numba.cpython.unsafe.tuple import unpack_single_tuple
27+
from numba.cuda.cpython.unsafe.tuple import unpack_single_tuple
2828

2929

3030
if PYVERSION in ((3, 12), (3, 13)):

0 commit comments

Comments
 (0)