Relative Content

Tag Archive for c++cudafft

Wrong 2D CUFFT_INVERE result

I want to realize IFFT function by cuda. Input data is compelx. The real number is import from “phase_init_befroe_R.csv”, and imaginary number is import from “phase_init_before_C.csv”.Then run cufftExecC2C or cufftExecZ2Z function. The result is save in “out_R.csv” and “out_C.csv”. “out_R.csv” is what I want.
When macro SINGLE is defined, all the data will be signle-precision.Here is the result draw by matlab command imagesc(csvread(“out_R.csv”)
enter image description here
When macro SINGLE is not defined, all the data will be double-precision. Draw by matlab command imagesc(csvread(“out_R.csv”))
enter image description here