Hi,

I’m trying to do a 1D batched FFT on real valued data, with the 4.1 SDK.

The data is in column major order: a0a1,…a511, b0,b1,b2,…b511,… and I want FFT to operate on the batches:

(a0,b0,c0,…), (a1,b1,c1,…), …

The length of each row is 512, and the FFT size is 64, so I want 512 batches of a 64 point FFT.

The FFT plan goes like this:

int n = {NUMBER_OF_CHANNELS};

cufftResult_t r = cufftPlanMany(&IFFT_plan, 1, n, NULL, //rank, SIZE , inmbed,

512, 1 , NULL, //istride, idist, ombed,

1, (64/2) + 1, //ostride, odist,

CUFFT_R2C, 512); //type, batch_size

I execute the FFT like this:

cufftExecR2C(IFFT_plan, RealInputData, ComplexOutputData);

But the output data doesn’t make sense.

Am I doing anything wrong??

Is cufftPlanMany supposed to work for R2C with the advanced layout format?

Thanks!!