'how to print cpu,gpu utilization in nvprof output report summary

Helo, I wanted to print the CPU,GPU utilization in the summary of nvprof output. I am profiling a sample application where I call an API cudasetdevice(id) . Its a simple application sample. I get the profiling report in table form, cuda API calls and there avg,min,max time required etc..is showing there. enter image description here Please help, if anyone knows how I can print CPU,GPU utilization % of the API calls.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source