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
gpuinfonv-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for gpuinfonv-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e058c2b6b98c902a6de8bd967a0134c37d10754079bb6672cdaa4bda81b13d76 |
|
MD5 | 4b0914b1a71db815582d2be8a797a258 |
|
BLAKE2b-256 | b1ca7f736973a625d95326927bd670dae1a8cbfc1a92ffa5a0aca78f8e964da7 |