I’m trying to do a batched 2D FFT but I’m not able to compile the call to cufftPlanMany,
cufftHandle FFTplan_XY, FFTplan_ZT;
NUMBER_OF_FFTS = DATA_D * DATA_T;
cufftPlanMany(&FFTplan_XY, 2, { DATA_W, DATA_H }, NULL, 1, 0, NULL, 1, 0, CUFFT_C2C, NUMBER_OF_FFTS);
For the line with “cufftPlanMany” the compiler gives the error
error: expected an expression
I’m trying to do a batched 2D FFT but I’m not able to compile the call to cufftPlanMany,
cufftHandle FFTplan_XY, FFTplan_ZT;
NUMBER_OF_FFTS = DATA_D * DATA_T;
cufftPlanMany(&FFTplan_XY, 2, { DATA_W, DATA_H }, NULL, 1, 0, NULL, 1, 0, CUFFT_C2C, NUMBER_OF_FFTS);
For the line with “cufftPlanMany” the compiler gives the error
error: expected an expression
I managed to fix it by replacing {DATA_W, DATA_H} with an int with two elements (int sizes[2]). It should be possible to compile the code in the CUFFT documentation right away!
I managed to fix it by replacing {DATA_W, DATA_H} with an int with two elements (int sizes[2]). It should be possible to compile the code in the CUFFT documentation right away!