I am having a hard time understanding the options for using the command line interface of the Nsight Compute.
- If I profile all the kernels and all their passes, and I store the results using the -o option that is available, what can I use to open this profile report generated. The report is of the following format:
Is there any tool available which might be shipped with the profiler that can be used to read this report? I want to access the data and further process it (for example, from a csv or a txt file). I do not want to use the Nsight Compute UI to view the data.
- To filter the profiling to just profile some of the kernels. Using --nvtx and --include/–exclude-nvtx I can limit the profiling to my NVTX ranges of choice. But the issue I am facing is with the options:
-k, --kernel-regex-base, --kernel-id
Could you provide a few examples for using the above options? The ones in the documentation are quite vague. Specifically, I am looking for an example for --kernel-id, the format of which I am unable to understand.
Also, if I know the names of the kernels I want to profile, how can I do that? Say for example I have 5 kernels named:
which do not have any common sub-names. Is there a way I can profile just these in a single go? Using -k (–kernel-regex) does not allow using multiple kernel names. Also, the CLI errors out when I try to use the option -k (–kernel-regex) multiple times.
If I can run the CLI like this,
nv-nsight-cu-cli -k ‘one’ -k ‘two’ -k ‘three’ -k ‘four’ -k ‘five’ ./myApp
nv-nsight-cu-cli -k ‘one’ , ‘two’ , ‘three’ , ‘four’ , ‘five’ ./myApp
If not the above two, please provide me an alternative to have profiling restricted to the name of the kernels I provide to the profiler.
Currently, I am running a for loop to get profiling infotmation to run profiler on each of the kernels I want profiling to be restricted to:
(please ignore the syntax)
for i in (1 ,numKernels)
run CLI with name[i]
Please provide a better option if applicable.
Looking forward to hearing from you!