Skip to main content

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 pynvml interface 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 .pth file.

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 pynvml features may not be supported or may have slightly different behavior due to backend differences.

License

This project is distributed under the MIT License.

Authors


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

pynvml_amd_windows-1.0.6.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file pynvml_amd_windows-1.0.6.tar.gz.

File metadata

  • Download URL: pynvml_amd_windows-1.0.6.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

Hashes for pynvml_amd_windows-1.0.6.tar.gz
Algorithm Hash digest
SHA256 73631f1bfc685e807a030b3773fd117237353e7e5f1769f7776745ee6d3e6309
MD5 a8fab8fba809a0b4a9553668f56c31e1
BLAKE2b-256 fff97ca92c5fc01442ee577870f346c2e610eaf94dee7480081c66b0b277628a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page