Batched FFTs using cufftPlanMany
I want to perform 441 2D, 32-by-32 FFTs using the batched method provided by the cuFFT library. The parameters of the transform are the following: int n[2] = {32,32}; int inembed[] = {32,32}; int onembed[] = {32,32/2+1}; cufftPlanMany(&plan,2,n,inembed,1,32*32,onembed,1,32*(32/2+1),CUFFT_D2Z,441); cufftPlanMany(&inverse_plan,2,n,onembed,1,32*32,inembed,1,32*32,CUFFT_Z2D,441); After I did the forward and inverse FFTs using the above plans, I could not get the original data back. Can anyone advise me how to set the parameters correctly for cudaPlanMany? Many thanks in advance. By the way, is it