i have this bit of code:
CUDA_SAFE_CALL(cudaMalloc((void **) &dst,(N_SAMPLES/2+1)* sizeof(cufftComplex)));
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));
and this allocates memory perfectly…