如何在 Fortran 90 中使用 CUFFT?
如何在用 Fortran 90 编写的程序中使用 CUFFT 库(来自 nVidia 的 CUDA SDK 4.0.13),据我所知,该库只有 C 绑定(待编译)使用 GNU 编译器集合 4.4.5 中的 gfortran
)?
我对一维和二维 FFT 计算都很感兴趣。
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
from GNU Compiler Colection 4.4.5)?
I am interested in both 1d and 2d FFT calculations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一个 C 源文件作为委托,该文件遵循特殊的命名制度,以便可以从 Fortran 中调用函数。在委托函数中,您调用 CudaFFT 函数。
详细信息可以在这里找到:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMishingFortranAndC.html
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