Converting FFTW program to CUFFT


I am working on converting an FFTW program into a CUFFT program.

Does the data output come out int he same format from CUFFT as FFTW?

I believe in a 1D FFTW C2C, the DC component is the first element in the array, then positive then negative. Is that correct for CUFFT as well?

How comparable will the results be? It seems like in my sample run, where I plot 50 rows of magnitude data, I am getting a graph that looks similar for my case, but it is definitely not exact, and there are a few places where it seems like it might have zero’d out, but didnt with FFTW.