I use Nsight Compute to profile the kernels of my Fortran code accelerated with OpenACC. I have troubles to see the source code in the Source page.
If I compile with the flag
-gpu=lineinfo, I can only view the SASS instructions, without sources.
If I compile with debug flags
-g -O0, I can view the source for the first kernel of each file. Example: one file contains a subroutine with two kernels, the source code is displayed correctly for the first kernel, but not for the second one. However for some files, not even the first kernel is displayed, so I am confused.
As a side note, the program is compiled and run on a Linux headless server, then data are transferred and analysed on a Windows machine. I have a local copy of the code, but I am not prompted to resolves any missing file.
Here the capture of the first kernel for a test program:
Here the capture for the second kernel, the source panel is empty:
What should I do?
NVHPC version on Linux server: 21.2-0
NCU version used to generate the report on Linux server: 2020.3.0.0
NCU version used to display the report on Windows machine: 2021.3.0.0