Commit 3129f55
authored
* `MmemoryPointer` ensure `CUdeviceptr` used with NVIDIA binding
The docs state that `pointer` should be a `c_void_p`, but the rest of
the driver binding code expects the pointer to be represented as a
`CUdeviceptr` when the NVIDIA bindings are in use.
If we're given a `c_void_p` by the user when using the NVIDIA bindings,
we can work around this by converting it to a `CUdeviceptr`.
This was first noticed when testing PyArrow with Numba-CUDA. See
apache/arrow#47128
* Correct device pointer value usage in EMM test
1 parent c015cab commit 3129f55
File tree
2 files changed
+4
-1
lines changed- numba_cuda/numba/cuda
- cudadrv
- tests/cudadrv
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
2065 | 2068 | | |
2066 | 2069 | | |
2067 | 2070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments