Skip to content

Instantly share code, notes, and snippets.

@ohjho
Last active February 2, 2021 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohjho/c08346ea31ba44cb44ea603d3171a042 to your computer and use it in GitHub Desktop.
Save ohjho/c08346ea31ba44cb44ea603d3171a042 to your computer and use it in GitHub Desktop.
hacks using `nvidia-smi` to monitor GPU stats from the terminal

A fake nvtop

watch -n 0.5 nvidia-smi

more specific stats

nvidia-smi --format=csv --query-gpu=power.draw,utilization.gpu,fan.speed,temperature.gpu,memory.used,memory.free

if you have python:

pip install gpustat
gpustat

Reference

this link has the most hacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment