How to use nsys with memory-usage option


I want to view GPU memory usage in Nsight Systems (nsys-ui). I’ve done this before, but I forgot how to display it.

I tried running:

nsys profile -t cuda,nvtx,osrt --cuda-memory-usage=true ./xxx

However, the memory usage didn’t appear, and sometimes NSYS generates the report before the executable has finished running.

Thanks

@skottapalli

That should work. However given that the report is being generated before you expect, I wonder if you are not tracing the right child process?

Hello @tnwilly - could you please share the nsys-rep file from the command line you shared where the memory usage is not showing up? If you are not comfortable sharing it in the public post, please IM it to me?