register_host_memory
fails for numpy array created frombuffer
#459
Labels
register_host_memory
fails for numpy array created frombuffer
#459
Bug description
Cannot
pycuda.driver.register_host_memory
using numpy array that was createdfrombuffer
.Error thrown
Browsing other issues raised, this might relate to issue #450 and PR #451.
xfail
in 2a276c4However, this is reproducible with numpy==1.26.2 (not numpy 2.0 or newer).
Steps to reproduce
Executing the following minimum working example with pycuda==2024.1.2 results in the above error.
Note that executing the same minimum working example with pycuda==2023.1 does not throw an error.
Expected behaviour
I'd like this to be fixed, please. This is quite key in (our) benchmarking of GPU (htod, dtoh) performance,
if/when we do upgrade to the latest pycuda.
Environment
Additional context
Belated apologies in advance if I've misinterpreted the error/this is already on your radar. Figured I'd
flag it anyway, just to be safe.
The text was updated successfully, but these errors were encountered: