Hi team,
I am working on Nvidia drive Orin. By executing a certain code, I generated a rep file and opened it in nsys. But I could not see total gpu and cpu utilisation in the report?Is there any tool to measure execution time of code? In rep file, I could see timeline view but how do I find total cpu and gpu utilization?
Dear @akshay.tupkar,
How about the checking the timeline of APIs in nsys report to see execution time of an API? Other wise you can use c++ timers/ CUDA events to know the execution time of specific section in your application.
You can check CPU core utilisation during an instance in the timeline, however GPU utilisation at a given time is not recorded in nsys report. You can use tegrastats
to check the GPU utilisation at a given instance when application is running.
Is there any GUI for tegrastats?
No. It is only cmd line tool
Thanks for info @SivaRamaKrishnaNV
In nsys report, there is one analysis summery section in which i can see process summery, thread summery and module summery.
Under Process summery, there is a process id 4540 and the name of executable along with arguments. Beside this, I could see cpu utilisation section which shows 99.25%. Do I consider this as a total cpu utilisation or do i need to sum up all values in thread summery?
Dear @akshay.tupkar,
could you share the rep file?
sure @SivaRamaKrishnaNV
I have shared rep file which is converted into text format
summery.txt (65.7 KB)
Kindly take a look at it and guide me in this case.
Dear @akshay.tupkar
do you have any issue with uploading nsys-rep file? If not, is it possible to upload it directly here or via private message.
The one against process ID should be average consumption in process summary. I need to cross check the CPU utilization in timeline view.
Dear @SivaRamaKrishnaNV
how do I share rep file since it is not readable i guess?
Will it be fine if i take photos and send you?
Dear @akshay.tupkar,
Rep file can be open in nsys ui.
yes I know, but how do I share the rep-file because i could not see any option to share the file in nsys. I have shared the file from ubuntu to windows but while sharing I could not see the file, Is there any other way to do so? I am using windows and nsys tool is on ubuntu system which is a host
yes I know, but how do I share the rep-file because i could not see any option to share the file in nsys.
report1.txt (553.0 KB)
Because of file extension, it cant be shared
I renamed report1.txt
to report1.nsys-rep
and could not open it in nsys 2024.4.1 on windows. Is the nsys-rep file created using nsys
command line tool on target? what is the nsys version used on target?
Yes @SivaRamaKrishnaNV , rep-file is generated by using nsys command on target and then I opened it in Nsight systems 2024.4.1 version on host.
We dont need to install nsys manually right if we have flashed drive orin to Drive 0S 6.0.8.1?May I know how to check the version of nsys on target? " nsys --version" is not working.
The command I have used to generate rep-file is
$sudo /opt/nvidia/target-linux-tegra-armv8/nsys profile [application] [arguments]
Dear @SivaRamaKrishnaNV
I need your help and guidance as well in this
Dear @akshay.tupkar ,
Add opt/nvidia/target-linux-tegra-armv8/
to path to use nsys
directly. Please check the version
If I rename the .text to .rep, I could not open in nsys UI. Can you share the original rep file in some shared drive.
report1.nsys-rep.zip (37.1 MB)
I somehow sent you rep file via zip, because it was not getting sent. Please take a look at it if it works @SivaRamaKrishnaNV
Dear @SivaRamaKrishnaNV
can you please give it a try once the file I have shared?
Dear @akshay.tupkar ,
I can open the file now.
Yes. It indicates the CPU utilization by each process. In your case, only one huge process is running on target. The sum of all threads in process CPU utilization matches to process CPU utilization.
Thanks dear @SivaRamaKrishnaNV
What about GPU utilization? Did you notice anything related to GPU usage?