openAcc and PTX code


Is any flag to pass pgi fortran compiler to see how the gpu codes are generated? like the ptx codes?


If you are using CUDA Fortran, use the following option:

  • -Mcuda=keepgpu,keepptx

If you are using the PGI accelerator model, use the following option:

  • -ta=nvidia,keepgpu,keepptx

You can find out more information on these options in the manpage or users guide.