anderskm/gputil
A Python module for getting the GPU status from NVIDA GPUs using nvidia-smi programmically in Python observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 93
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3516
- days_rel: n/a
- days_push: 46
- n_releases_24m: 0
Adoption not part of the score
1214 stars · 131 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
GPUtil is a Python module that queries NVIDIA GPU status (memory usage, load, availability) by wrapping the nvidia-smi command-line tool. It returns an ordered list of available GPUs, primarily intended for GPU selection in deep learning workflows.
Use cases
- find a free nvidia gpu before launching a training job
- monitor gpu memory and load from python
- select the least utilized gpu in tensorflow or pytorch
- check gpu utilization programmatically
- restrict a script to a single available gpu
- monitor gpu usage in a background thread
When to choose
- you need a lightweight, dependency-free way to query NVIDIA GPU status in Python
- you want to automatically pick an available GPU for deep learning workloads
- you need Python 2 and 3 compatibility for GPU discovery
When to avoid
- you need AMD, Intel, or Apple Silicon GPU monitoring
- you want fine-grained metrics or process-level GPU data beyond what nvidia-smi exposes
- you need an actively developed library with modern feature support
Facets
library · maturity maintenance
monitoring gpu-computing machine-learning gpu-computing machine-learning developer-tools python windows nvidia nvidia-smi gpu-status gpu-selection cuda system-monitoring linux macos
2 sources
- readme: https://github.com/anderskm/gputil · fetched 2026-08-28 · fcdfed837f45
- registry_pypi: https://pypi.org/pypi/gputil/json · fetched 2026-08-29 · b88ca4c313e2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| anderskm/gputil | main | 65 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem