Quick CUDA/GPU status summary for ML engineers
Project description
cgpu
Quick CUDA/GPU status summary for ML engineers. One import, one call, all the info you need.
Installation
pip install cgpu-info
or with uv:
uv pip install cgpu-info
Note: You need PyTorch installed separately.
Usage
from cgpu import cgpu
device = cgpu()
# Now use `device` in your code
model.to(device)
That's it! You'll see a colorful summary like:
═══════════════════════════════════════
GPU Status Summary
═══════════════════════════════════════
✓ CUDA Available
Device: cuda
GPU Count: 1
[0] NVIDIA GeForce RTX 4090
VRAM: 24.0 GB
Allocated: 0.00 GB
Reserved: 0.00 GB
Temp: 42°C
GPU Util: 0%
Mem Util: 0%
CUDA Version: 12.1
cuDNN Version: 8902
PyTorch: 2.1.0
═══════════════════════════════════════
What it shows
- CUDA availability status
- Device string (
cudaorcpu) - GPU name and count
- VRAM total and usage
- Temperature (color-coded: green < 50°C, yellow < 70°C, red >= 70°C)
- GPU/Memory utilization
- CUDA, cuDNN, and PyTorch versions
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cgpu_info-0.1.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cgpu_info-0.1.1.tar.gz.
File metadata
- Download URL: cgpu_info-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13fede3b0fe8a85e7574ebefa8d1cd3ba0398911182fa7e844921b45ca8f0b0
|
|
| MD5 |
a725af9332a2a72dfe354b14fd785b16
|
|
| BLAKE2b-256 |
8a24cb78fd8b2d2402b7dcdd71b98287acfa53c360a716ef0af1a68dfdaee432
|
File details
Details for the file cgpu_info-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cgpu_info-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b409874032ebc8987bf80f647a6b2a77c1a5e4c005b37ab514e50c5706dce8
|
|
| MD5 |
8bd28251463fb159f0bfaee372df75ee
|
|
| BLAKE2b-256 |
38b8ced1078e5ebd331f0252c5613b5fe92c93b41cf2eb8687c743dde01fd06d
|