# Problem with multiple FFT results for CufftPlanMany

Excuse me,I plan to call the cupftPlanMany function to fft transform a 35 * 32768 double matrix into a 35 * 32768 complex matrix by row, a total of 35 times, but the following situation occurs:
When I called the cufftPlanMany function, I only performed an fft transformation once and found that the output result was as follows:
output[16379]=19.609187 46.087162
output[16380]=-6.522406 -36.558056
output[16381]=32.868516 21.921499
output[16382]=9.660771 5.343018
output[16383]=-15.109085 -35.145560
output[16384]=13.726264 -0.000000
output[16385]=0.000000 0.000000
output[16386]=0.000000 0.000000
output[16387]=0.000000 0.000000
output[16388]=0.000000 0.000000
The code is as follows：
cufftHandle plan;
cuDoubleComplex* output = (cuDoubleComplex*)malloc(35 * 32768 * sizeof(cuDoubleComplex));
double* input = (double*)malloc(35 * 24000 * sizeof(double));
int rank=1;
int n[1];
n[0]=32768;
int istride=1;
int idist = 32768;
int ostride=1;
int odist = 32768;
int inembed[2];
int onembed[2];
int batch = 1;
inembed[0]=35; onembed[0]=35;
inembed[1] =1; onembed[1] = 1;
cufftPlanMany(&plan,rank,n,inembed, istride ,idist , onembed, ostride,odist, CUFFT_D2Z, batch);
cufftExecD2Z(plan, input, output);
On this screenshot, the first half is the correct result, and the second half is 0,
And when I called this function multiple times for fft, I found that the output result was as follows:
output[16379]=19.609187 46.087162
output[16380]=-6.522406 -36.558056
output[16381]=32.868516 21.921499
output[16382]=9.660771 5.343018
output[16383]=-15.109085 -35.145560
output[16384]=13.726264 -0.000000
output[16385]=-2.123908 1.668781
output[16386]=-3.028799 -0.631356
output[16387]=-1.174028 -2.794860
output[16388]=3.416280 2.261953
The code is as follows：
cufftHandle plan;
cuDoubleComplex* output = (cuDoubleComplex*)malloc(35 * 32768 * sizeof(cuDoubleComplex));
double* input = (double*)malloc(35 * 24000 * sizeof(double));
int rank=1;
int n[1];
n[0]=32768;
int istride=1;
int idist = 32768;
int ostride=1;
int odist = 32768;
int inembed[2];
int onembed[2];
int batch = 35;
inembed[0]=35; onembed[0]=35;
inembed[1] =32768; onembed[1] = 32768;
cufftPlanMany(&plan,rank,n,inembed, istride ,idist , onembed, ostride,odist, CUFFT_D2Z, batch);
cufftExecD2Z(plan, input, output);
Comparing this result with the above, it is found that the first half is correct, while the second half is incorrect, and it is not zero.