The double precision complex data type is defined as cufftDoubleComplex
in CUFFT.
Double precision versions of fft in CUFFT are:
cufftExecD2Z() //Real To Complex
cufftExecZ2D() //Complex To Real
cufftExecZ2Z() //Complex To Complex
cufftExecC2C
is the single precision version of fft, and expects the input and output pointers to be of type cufftComplex
,whereas you are passing it a pointer of type cufftDoubleComplex
.
For cufftDoubleComplex
data type, you have to use the function cufftExecZ2Z
instead, which is for double precision data.