Suppose I have a simple CLI test app named "Foo". This app executes a kernel "Bar" 100 times in a loop. How may I obtain an average kernel execution time for Bar, using Nsight Systems or Nsight Compute, either the GUI or CLI versions of these apps.
The Nvidia Visual Profiler app provides this information in the Properties dialog, for each kernel, as "Duration (kernel)" and Invocations.
I would like to obtain the same information with Systems or Compute. Because Visual Profiler is to be deprecated.
Following the example in this post
nv-nsight-cu-cli -k Bar Foo
I get a 100x printouts, one for each kernel execution. I want just summary information for kernel Bar.
You can achieve this with the Nsight Compute CLI using option
--print-summary per-gpu
: it provides a minimum, maximum and average execution time. Example below: