I have a code which is written in c++, it is using the fftw3 library.
To make it faster I am replacing fftw3 with CUFFT.
fftw3 and CUFFT are using variables and pointers for plan and complex from the same type.
based on the CUFFT Library manual last example (for 3d, c2c); I did not include the cudaMemcpy commands.
In addition I included the following headers in the code
I set the linker and the search directories to point to the libcufft.so and the above include files
when I compile I have the following error generated:
/…/cuda.h:547: error: expected â€˜,â€™ or â€˜…â€™ before numeric constant
/…/cuda.h:696: error: expected â€˜,â€™ or â€˜…â€™ before numeric constant
the first line (547) in cuda.h is under device management
CUresult CUDAAPI cuDeviceGetAttribute(int *pi, CUdevice_attribute attrib, CUdevice dev);
the second line (696) in cuda.h is under fuction management
CUresult CUDAAPI cuFuncGetAttribute (int *pi, CUfunction_attribute attrib, CUfunction hfunc);