Accessing Fortran Modules form CUDA C

Hello,

I am working on implementing CUDA programming into an already existing FORTRAN code. I am wondering if it is possible for a CUDA kernel to access a Fortran Module? Thanks

CUDA has a lot of interoperability capabilities.

It’s certainly possible to mix CUDA with Fortran codes. A simple approach would just be to use standard C/Fortran interop methods (linking).

You can also use CUDA Fortran, a product available from PGI, in order to write CUDA kernels directly in Fortran code.

I think it’s possible for a CUDA module to access a Fortran module, but it’s not possible to call an (ordinary) Fortran compiled/linked object directly from CUDA C (i.e. directly from CUDA device or kernel code).