How to use CUFFT from Fortran 90?
How to use CUFFT library (from nVidia's CUDA SDK 4.0.13), which as far as I know has only C bindings, in program written in Fortran 90 (to be compiled using gfortran
fr开发者_JS百科om GNU Compiler Colection 4.4.5)?
I am interested in both 1d and 2d FFT calculations.
You need a C source file as delegate which follows a special naming regime for the functions to be callable form Fortran. In the delegate functions you call the CudaFFT functions.
Details can be found here:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMixingFortranAndC.html
精彩评论