This is an automated email from the ASF dual-hosted git repository.
pitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 6b43215b09 GH-12594: [Python][GPU] Remove inherently crashy CUDA test
(#51206)
6b43215b09 is described below
commit 6b43215b0957e15f7c54ad2c043d73c20fb4f9cd
Author: Antoine Pitrou <[email protected]>
AuthorDate: Mon Sep 7 14:32:48 2026 +0200
GH-12594: [Python][GPU] Remove inherently crashy CUDA test (#51206)
### What changes are included in this PR?
Remove a CUDA test that tries to access an invalid pointer (after the
owning resource was deallocated).
On old CUDA setups it used to raise an exception:
```
Cuda error 1 in function 'cuMemcpyDtoH': [CUDA_ERROR_INVALID_VALUE] invalid
argument
```
but more recently it has simply started crashing.
### Are these changes tested?
By existing CI tests. This should fix a crash in the CUDA Python CI.
### Are there any user-facing changes?
No.
* GitHub Issue: #12594
Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
---
python/pyarrow/tests/test_cuda.py | 8 --------
1 file changed, 8 deletions(-)
diff --git a/python/pyarrow/tests/test_cuda.py
b/python/pyarrow/tests/test_cuda.py
index b995c2dd5f..e65784887c 100644
--- a/python/pyarrow/tests/test_cuda.py
+++ b/python/pyarrow/tests/test_cuda.py
@@ -297,14 +297,6 @@ def test_foreign_buffer():
del hbuf
fbuf.copy_to_host()
- # test deallocating the host buffer memory making it inaccessible
- hbuf = cuda.new_host_buffer(size * dtype.itemsize)
- fbuf = ctx.foreign_buffer(hbuf.address, hbuf.size)
- del hbuf
- with pytest.raises(pa.ArrowIOError,
- match=('Cuda error ')):
- fbuf.copy_to_host()
-
@pytest.mark.parametrize("size", [0, 1, 1000])
def test_CudaBuffer(size):