A Python library for gathering and managing information about NVIDIA GPUs
Project description
GPUInfoNV
GPUInfoNV is a Python library for gathering and managing information about NVIDIA GPUs. It provides functionality to retrieve GPU statistics, check PyTorch availability, and free up GPU resources.
Features
- Detect and gather information about NVIDIA GPUs
- Check PyTorch and CUDA availability
- Retrieve detailed GPU statistics
- Free up GPU resources, including process termination and cache clearing
Installation
You can install GPUInfoNV using pip:
pip install gpuinfonv
Quick Start
Here's a simple example of how to use GPUInfo:
from gpuinfonv import GPUInfo
# Create a GPUInfo instance
gpu_info = GPUInfo()
# Print information about all detected GPUs
gpu_info.print_gpu_info()
# Free up GPU resources
gpu_info.free_up_gpu(0) # Free up GPU 0
Documentation
For more detailed information, check out our full documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 gpuinfonv-0.1.0.tar.gz.
File metadata
- Download URL: gpuinfonv-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953b3466a39e834b0599f4ede8d06618c1f5102f55d85e9d666184467f363328
|
|
| MD5 |
2697f630e83002ec5d3f3493ee653c53
|
|
| BLAKE2b-256 |
47f20516fe613c3f2bc2016e869889e55ad3b7fa529f9ce911e345acc56bc27d
|
File details
Details for the file gpuinfonv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gpuinfonv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e058c2b6b98c902a6de8bd967a0134c37d10754079bb6672cdaa4bda81b13d76
|
|
| MD5 |
4b0914b1a71db815582d2be8a797a258
|
|
| BLAKE2b-256 |
b1ca7f736973a625d95326927bd670dae1a8cbfc1a92ffa5a0aca78f8e964da7
|