开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜