Skip to content

[Python] test_cuda_numba_interop fails with numba-cuda #47128

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

Integrated CUDA support in Numba is deprecated in favor of the external Numba-CUDA module, maintained by NVidia.

However, when running our Numba CUDA interop tests with Numba-CUDA installed, I get the following failures on all tests:

  File "/home/antoine/arrow/dev/python/pyarrow/tests/test_cuda_numba_interop.py", line 41, in setup_module
    ctx2 = cuda.Context.from_numba(nb_ctx2)
  File "pyarrow/_cuda.pyx", line 84, in pyarrow._cuda.Context.from_numba
    handle=context.handle.value)
AttributeError: 'cuda.bindings.driver.CUcontext' object has no attribute 'value'

This probably means that our Numba interoperation code doesn't work with Numba-CUDA, only with the deprecated CUDA support in Numba itself.

Component(s)

GPU, Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions