wookayin/gpustat
📊 A simple command-line utility for querying and monitoring GPU status
What it solves
gpustat provides a more concise and readable alternative to nvidia-smi for monitoring NVIDIA GPU status. It simplifies the presentation of GPU metrics like temperature, utilization, and memory usage, making it easier to track which processes and users are consuming GPU resources.
How it works
It acts as a wrapper around NVIDIA's official Python bindings for the NVIDIA Management Library (NVML), specifically using nvidia-ml-py. It can be run as a command-line tool or imported as a Python library to query GPU statistics programmatically.
Who it’s for
Developers and researchers working with NVIDIA GPUs who need a quick, clear way to monitor hardware utilization and process ownership in real-time.
Highlights
- Comprehensive Metrics: Displays GPU index, name, temperature, utilization, and memory usage.
- Process Tracking: Can show the username of the process owner, the process name, and the PID.
- Flexible Output: Supports colored terminal output, JSON format for automation, and a watch mode for periodic updates.
- Python API: Allows integration into other Python projects to query GPU stats via code.
Related
- Project
- Project
- Project
- Project