Hi,
I’m trying to use streams to apply cufft for each stream. I tried to use an array of cufft plans corresponding to an array of streams, but when I tried to create plans using the following:
cufftHandle plan[N];
printf(“Planning the CUFFT 3D FFT!\n”);
for(int i=0; i<N; ++i) {
checkCudaErrors(cufftPlan3d( &plan[i], ZSIZE, YSIZE, XSIZE, CUFFT_C2C));
}
checkCudaErrors reports error.
If I create only one plan using
cufftHandle pla;
checkCudaErrors(cufftPlan3d( &pla, ZSIZE, YSIZE, XSIZE, CUFFT_C2C));
And then later using cufftSetStream to associate the plan with the stream, it doesn’t work except the first stream.
cufftSetStream(pla, streams[i]);
Thanks for your help in advance!!!