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

Uploaded Source

File details

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

File metadata

  • Download URL: pynvml_amd_windows-1.0.12.tar.gz
  • Upload date:
  • Size: 7.8 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.12.tar.gz
Algorithm Hash digest
SHA256 197515f71cb0701ae4ffc693cd3e003032d19abdd7dafdc1f1bc203a2afa4440
MD5 2b668fd1b6715078a3fce5bff9326c25
BLAKE2b-256 bfcb41aa0cee3c4542b04c28080b9e5d3dcb4fb605b4b9e172acd8f188802562

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