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.4.tar.gz (8.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pynvml_amd_windows-1.0.4.tar.gz
  • Upload date:
  • Size: 8.1 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.4.tar.gz
Algorithm Hash digest
SHA256 43dca303449fcec0293285ee6d7126a050f88f57714878191378c16f63fa4e6f
MD5 6b5351c01279d58ae174a2dd5c0d2b9d
BLAKE2b-256 d4b025865a09795f535cdd490a06ab6c4038f152a44bc83a88f7f447b487f1a4

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