You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below used to work up to version 3.3 of CUDA.jl. In version 3.4 it results in this error message: "ERROR: Could not identify the buffer type; are you passing a valid CUDA pointer to unsafe_wrap?"
To reproduce
The Minimal Working Example (MWE) for this bug:
using CUDA
functionregister(A)
A_buf = Mem.register(Mem.Host, pointer(A), sizeof(A), Mem.HOSTREGISTER_DEVICEMAP)
A_gpuptr =convert(CuPtr{Float64}, A_buf)
returnunsafe_wrap(CuArray, A_gpuptr, size(A));
end
nx =512*512*1024;
A =zeros(nx);
A_d =register(A);
Describe the bug
The code below used to work up to version 3.3 of CUDA.jl. In version 3.4 it results in this error message: "ERROR: Could not identify the buffer type; are you passing a valid CUDA pointer to unsafe_wrap?"
To reproduce
The Minimal Working Example (MWE) for this bug:
The code was copied from: https://discourse.julialang.org/t/cudanative-register-host-memory-for-pinned-memory-access/23046/20
The text was updated successfully, but these errors were encountered: