Skip to content
4 changes: 2 additions & 2 deletions numba_cuda/numba/cuda/core/inline_closurecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
compute_live_variables,
)
from numba.core.imputils import impl_ret_untracked
from numba.core.extending import intrinsic
from numba.cuda.extending import intrinsic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm my understanding, this is leftover from previous efforts and should be cleaned up, but isn't directly related to the other changes in this PR correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, our policy so far has been to fix dangling imports as we see them.

from numba.core.typing import signature

from numba.cuda.core import postproc, rewrites
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def codegen(context, builder, sig, args):
def codegen(context, builder, sig, args):
(value,) = args
intp_t = context.get_value_type(types.intp)
from numba.cpython.listobj import ListIterInstance
from numba.cuda.cpython.listobj import ListIterInstance

iterobj = ListIterInstance(context, builder, sig.args[0], value)
return impl_ret_untracked(context, builder, intp_t, iterobj.size)
Expand Down
5 changes: 1 addition & 4 deletions numba_cuda/numba/cuda/core/pythonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ def __init__(self, context, builder):
self.longlong = ir.IntType(ctypes.sizeof(ctypes.c_ulonglong) * 8)
self.ulonglong = self.longlong
self.double = ir.DoubleType()
if config.USE_LEGACY_TYPE_SYSTEM:
self.py_ssize_t = self.context.get_value_type(types.intp)
else:
self.py_ssize_t = self.context.get_value_type(types.c_intp)
self.py_ssize_t = self.context.get_value_type(types.intp)
self.cstring = ir.PointerType(ir.IntType(8))
self.gil_state = ir.IntType(_helperlib.py_gil_state_size * 8)
self.py_buffer_t = ir.ArrayType(
Expand Down
2 changes: 1 addition & 1 deletion numba_cuda/numba/cuda/core/unsafe/bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
operations with bytes and workarounds for limitations enforced in userland.
"""

from numba.core.extending import intrinsic
from numba.cuda.extending import intrinsic
from llvmlite import ir
from numba.core import types
from numba.cuda import cgutils
Expand Down
2 changes: 1 addition & 1 deletion numba_cuda/numba/cuda/core/unsafe/eh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from numba.core import types, errors
from numba.cuda import cgutils
from numba.core.extending import intrinsic
from numba.cuda.extending import intrinsic


@intrinsic
Expand Down
2 changes: 1 addition & 1 deletion numba_cuda/numba/cuda/core/unsafe/refcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from numba.core import types
from numba.cuda import cgutils
from numba.core.extending import intrinsic
from numba.cuda.extending import intrinsic

_word_type = ir.IntType(64)
_pointer_type = ir.PointerType(ir.IntType(8))
Expand Down
Loading