how to count cuda usage state?

Hello everyone,
do you have any way to real-time check the cuda usage? thanks.

Hi xhz,

You could use the CUDA nvprof, to profile your CUDA application with this command line profiling tool to quickly collect CUDA kernel performance data and hardware performance counters.