Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the execution time in nvprof

Tags:

cuda

nvprof

Is there a way to get the kernel execution time in nvprof like for a metric?

for example, to get the dram read transactions I type:

nvprof --metrics dram_read_transactions ./myprogram

My question is: is there something like

nvprof --metrics execution_time ./myprogram

I would like to collect a small set of metrics in one command line instead of having to use

nvprof ./myprogram

as a separate command.

like image 565
user352102 Avatar asked Dec 04 '25 13:12

user352102


1 Answers

I believe you are looking for: nvprof --print-gpu-trace ./myprogram

like image 173
Hugo Maxwell Avatar answered Dec 07 '25 15:12

Hugo Maxwell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!