Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to nvidia-smi for measuring GPU utilization?

nVidia dropped support for all non quadro and tesla cards when it comes to using some tools and/or development libraries/tools. I have two GTX 590s, and when I use nvidia-smi most queryable fields return N/A because they dropped support for this card.

Are there other tools that purport to gather this information? Is it possible/straightforward to query this information with the SDK?

like image 904
Brian Vandenberg Avatar asked Feb 08 '12 09:02

Brian Vandenberg


Video Answer


3 Answers

On Windows there's NvAPI which works on all GPUs.

On Linux if you're running X Server you can also query some of the information (GPU temperature, clocks, unfortunately no utilization) using nvidia-settings utility. e.g. nvidia-settings -q all

For Quadro and Tesla GPUs there's NVML/nvidia-smi that works both on Linux and Windows 64.

like image 160
Przemyslaw Zych Avatar answered Sep 18 '22 15:09

Przemyslaw Zych


Although this is a very old question, I'm going to leave this here in case someone with the same issue stumble upon this. Nvidia-settings still forwards the GPU usage stat through -q [gpu:X]/GPUUtilization. it's very slow compared to nvidia-smi, but it's still better than not knowing. Either way, I wrote a script to put this and a few other common stats in a concise and readable way. Here it is for those who want it.

like image 32
Santo Guevarra Avatar answered Sep 20 '22 15:09

Santo Guevarra


GPUstat outputs with colorful one-liners. It's implemented in Python and it has a test suite if you feel like tweaking it.

https://github.com/wookayin/gpustat

like image 32
Nei Neto Avatar answered Sep 18 '22 15:09

Nei Neto