[Python][C++][GPU] Python Cuda jobs fail with 'cuda.bindings.driver.CUcontext' object has no attribute 'value'
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
The CUDA Python jobs have started failing on the nightly builds:
- [AMD64 Ubuntu 22 CUDA 11.7.1 Python](https://github.com/apache/arrow/actions/runs/22611153577/job/65513723871)
- [AMD64 Ubuntu 24 CUDA 12.9.0 Python](https://github.com/apache/arrow/actions/runs/22611153577/job/65513723881)
There are plenty of errors part of the output:
```
_____________ ERROR at setup of test_pyarrow_jit[int16-numba.cuda] _____________
module =
def setup_module(module):
np.random.seed(1234)
ctx1 = cuda.Context()
nb_ctx1 = ctx1.to_numba()
nb_ctx2 = nb_cuda.current_context()
> ctx2 = cuda.Context.from_numba(nb_ctx2)
arrow-dev/lib/python3.10/site-packages/pyarrow/tests/test_cuda_numba_interop.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AttributeError: 'cuda.bindings.driver.CUcontext' object has no attribute 'value'
pyarrow/_cuda.pyx:84: AttributeError
___________ ERROR at setup of test_pyarrow_jit[float32-pyarrow.cuda] ___________
module =
def setup_module(module):
np.random.seed(1234)
ctx1 = cuda.Context()
nb_ctx1 = ctx1.to_numba()
nb_ctx2 = nb_cuda.current_context()
> ctx2 = cuda.Context.from_numba(nb_ctx2)
arrow-dev/lib/python3.10/site-packages/pyarrow/tests/test_cuda_numba_interop.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AttributeError: 'cuda.bindings.driver.CUcontext' object has no attribute 'value'
pyarrow/_cuda.pyx:84: AttributeError
____________ ERROR at setup of test_pyarrow_jit[float32-numba.cuda] ____________
module =
def setup_module(module):
np.random.seed(1234)
ctx1 = cuda.Context()
nb_ctx1 = ctx1.to_numba()
nb_ctx2 = nb_cuda.current_context()
> ctx2 = cuda.Context.from_numba(nb_ctx2)
arrow-dev/lib/python3.10/site-packages/pyarrow/tests/test_cuda_numba_interop.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AttributeError: 'cuda.bindings.driver.CUcontext' object has no attribute 'value'
```
I haven't investigated whether a third party dependency version difference can be the issue but looks like it.
### Component(s)
C++, Python, GPU
Contributor guide
Assessment
This issue has not been assessed yet.