开发者

How to use CUFFT from Fortran 90?

开发者 https://www.devze.com 2023-03-15 13:58 出处:网络
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 Co

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

精彩评论

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