A top-like utility for monitoring CUDA activity on a GPU

natorro picture natorro · Nov 22, 2011 · Viewed 168.1k times · Source

I'm trying to monitor a process that uses CUDA and MPI, is there any way I could do this, something like the command "top" but that monitors the GPU too?

Answer

Guillaume Chevalier picture Guillaume Chevalier · Mar 3, 2016

To get real-time insight on used resources, do:

nvidia-smi -l 1

This will loop and call the view at every second.

If you do not want to keep past traces of the looped call in the console history, you can also do:

watch -n0.1 nvidia-smi

Where 0.1 is the time interval, in seconds.

enter image description here