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.(http://www.pgroup.com/resources/docs/17.10/x86/pgi-user-guide/index.htm)

or the PVF User’s Guide (http://www.pgroup.com/resources/docs/17.10/x86/pvf-user-guide/index.htm)