Skip to content
Commit 0f28293d authored by Simon Perkins's avatar Simon Perkins
Browse files

Replaced PyArray_SIZE(ary) with PyArray_NBYTES(ary).

pycuda.driver.register_host_memory() was passing
the size of the array in elements, rather than
the length of the array in bytes when
creating a register_host_memory class.
This resulted in "Invalid Argument" errors
when calling asynchronous memory copies on
the entire array.
parent ccb694dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment