-Mcuda=cc60

Thank you for help me, this is my first time to use the PGI CUDAFORTRAN so i don’t know how to set compiler flags with “-Mcuda=cc60”, please help me again.

How are you building your program now? Makefile, command line, PGI Visual Fortran (PVF)? Which OS are you using? Windows, Linux, or Mac?

“-Mcuda=cc60” is a compiler option that you would add to your compile line on the command prompt.

pgfortran -Mcuda=cc60 -fast mySourceFile.cuf

If you are using a makefile to build, then you’d add it to the compiler options in the file.


You may consider reading the PGI User’s Guide since this will have more details on how to use the compilers.(User's Guide :: PGI version 17.10 Documentation for x86 and NVIDIA Processors)

or the PVF User’s Guide (User's Guide :: PVF version 17.10 Documentation for x86 and NVIDIA Processors)

-Mat