it is very similar to the examples code in documentation, N_SAMPLES is defined in a c++ .h file but i have no warnings or errors regarding this.
pointer dst remains null after this and i can’t figure out why …
i also have:
cudaMallocHost((void *) src,N_SAMPLES sizeof(int));
well i have a 8800 GT and i have tried with only one memory block so it is not an out of memory problem…
as you can see dst is a pointer so it has the & … src is int** so it doesn’t have a & …
care to elaborate on “cuda error state” ?
i’ll try to debug further on pointer stuff but it’s weird since it is the same line of the examples…
You have it wrapped in a CUDA_SAFE_CALL, which is good. Now compile it in debug mode and run it. CUDA_SAFE_CALL should write out the reason for the error.