Linking problem wiith CUDA Fortra

Hi all,

in a quite large code, I get this errors:


PGF90-S-0038-Symbol, cudamemadvise, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudamemadvise, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudamemadvisesetpreferredlocation, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudamemprefetchasync, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudacpudeviceid, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudamemadvisesetreadmostly, has not been explicitly declared (main.f90)
PGF90-S-0038-Symbol, cudadevicesynchronize, has not been explicitly declared (main.f90)
0 inform, 0 warnings, 6 severes, 0 fatal for program

I guess it does not recognize some cuda libraries.

Does anyone know anything about this problem?

thanks in advance

Hi Marcres,

This looks more likely a compilation issue where you forgot to use the CUDA Fortran module so there’s no interfaces for these calls.

Please try adding “use cudafor” to your source and see if it fixes the problem.

Best Regards,
Mat