after edition:
I wonder why the first argument of the cudaMalloc
should be casted to void**
, e.g (void**)&d_A
where d_A
is a pointer. I don't understand the syntax but content with its use especially
cudaError_t cudaMalloc ( void ** devPtr,
size_t size
)
Cheers