9 releases

0.1.8 Aug 3, 2023
0.1.7 Jul 19, 2023
0.1.6 Mar 5, 2023
0.1.4 Jul 14, 2021
0.1.2 Jun 25, 2021

#2347 in Command line utilities

30 downloads per month

GPL-2.0 license

20KB
262 lines

gpustat

Crates.io license

A rust version of gpustat.

Just less than nvidia-smi?

Usage

$ gpustat

Options:

  • --color : Force colored output (even when stdout is not a tty)
  • --no-color : Suppress colored output
  • -u, --show-user : Display username of the process owner
  • -c, --show-cmd : Display the process name
  • -f, --show-full-cmd : Display full command and cpu stats of running process
  • -p, --show-pid : Display PID of the process
  • -F, --show-fan : Display GPU fan speed
  • -e, --show-codec : Display encoder and/or decoder utilization
  • -a, --show-all : Display all gpu properties above

Quick Installation

Install from Cargo:

cargo install gpustat

Default display

[0] | A100-PCIE-40GB | 65'C | 75 % | 33409 / 40536 MB | along(33407M)

  • [0]: GPUindex (starts from 0) as PCI_BUS_ID
  • A100-PCIE-40GB: GPU name
  • 65'C: Temperature
  • 75 %: Utilization
  • 33409 / 40536 MB: GPU Memory Usage
  • along(33407M): Username of the running processes owner on GPU (and their memory usage)

Changelog

See CHANGELOG.md

License

GPL v2 License

Dependencies

~7–13MB
~159K SLoC