The ability to export the Source page from the command line is being planned, but I don’t have a definitive ETA yet.
The exported file contains source code and their file name. But it misses the full path of corresponding files
Sure, sounds like a reasonable request. I will open a ticket for this.
Note that you can potentially implement the export on the command line yourself using the python rules interface, at least as long as the source is locally available. The attached rule is using the NvRules API to query the information from the collected profile result (action) and print it to stdout. You can drop it in Nsight Compute’s sections directory and then collect the SourceCounters section on the CLI.
You can find more info on the NvRules API here NvRules API :: Nsight Compute Documentation
SourcePage2.py (2.0 KB)