diff --git a/numba/core/typing/context.py b/numba/core/typing/context.py index 09f27862d54..720cbbb258e 100644 --- a/numba/core/typing/context.py +++ b/numba/core/typing/context.py @@ -352,17 +352,8 @@ def resolve_argument_type(self, val): try: return typeof(val, Purpose.argument) except ValueError: - from numba.dppl_config import dppl_present, DeviceArray - if dppl_present: - if(type(val) == DeviceArray): - return typeof(val._ndarray, Purpose.argument) - # DRD : Hmmm... is the assumption that this error is encountered - # when someone is using cuda, and already has done an import - # cuda? - #elif numba.cuda.is_cuda_array(val): - # return typeof(numba.cuda.as_cuda_array(val), Purpose.argument) - else: - raise + if numba.cuda.is_cuda_array(val): + return typeof(numba.cuda.as_cuda_array(val), Purpose.argument) else: raise