pynvml-compatible library for AMD GPUs on Windows
Project description
pynvml-amd-windows
Purpose
pynvml-amd-windows is a drop-in replacement for NVIDIA's pynvml Python library, designed to allow existing pynvml-based applications to monitor and manage AMD GPUs on Windows systems. It provides a compatible API that redirects NVML calls to the AMD ADLX backend, enabling tools that were written for NVIDIA GPUs to work seamlessly with AMD hardware.
It was written for the specific purpose of enabling Crystools GPU performance monitoring for AMD platforms under Windows.
This package is especially useful if you have tools or scripts that expect pynvml to be present, and you want them to function without modification on systems with supported AMD GPUs.
Features
- Implements the
pynvmlinterface using AMD's ADLX library for Windows. - Compatible with most scripts and programs expecting
import pynvml. - No need to modify existing code: the package transparently handles imports using a
.pthfile.
Installation
Using pip
pip install pynvml-amd-windows
From source
Clone or download this repository, then run:
pip install .
from within the project directory.
Usage
After installation, any Python program that imports pynvml (or uses a package depending on it) will transparently use the AMD implementation on Windows—no code changes required.
Example:
python
import pynvml
pynvml.nvmlInit()
count = pynvml.nvmlDeviceGetCount()
print("Number of AMD GPUs detected:", count)
Limitations
- Only supports AMD GPUs on Windows using the ADLX backend.
- Some advanced
pynvmlfeatures may not be supported or may have slightly different behavior due to backend differences.
License
This project is distributed under the MIT License.
Authors
- Christopher Anderson (sfinktah@github.spamtrak.org)
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
File details
Details for the file pynvml_amd_windows-1.0.9.tar.gz.
File metadata
- Download URL: pynvml_amd_windows-1.0.9.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
035d131410b2c6689dad234ce593110d089ce39b69f3dea21a9875621ef1629d
|
|
| MD5 |
f6b3b75a36819051fb09ea5309a23122
|
|
| BLAKE2b-256 |
3274a535e4b40fb78f73ed290f2b1c97551969c403b99c59baa2dd5efb46bae5
|