For some sections such as SpeedOfLight, the output is normal containing desired information. Why is the output empty for SourceCounters section? How can I address the issue?
My CUDA version is 11.1. My GPU is 3090. The NVIDIA driver is 450.66.
By default, the command line prints only the metrics in the selected sections’ headers. For the SourceCounters section, there are no or only very few metrics in the header (depending on which Nsight Compute version you are using), so most of them won’t be printed to stdout by default. The reason is that most metrics in this section are per-instruction and should be viewed on the UI’s Source page, or on the CLI’s source printout for recent ncu version.
Note though that you can always print all metrics that were collected with the CLI by selecting the Raw page