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

Uploaded Source

File details

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

File metadata

  • Download URL: pynvml_amd_windows-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 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.0.tar.gz
Algorithm Hash digest
SHA256 02997c446373e0c266f38ecb5dae6b1202d94bfc8deabfedf0bf12cf5eafb6a8
MD5 427f042996e4008c138bdeeeb1a45f50
BLAKE2b-256 c61e649dd31a1c22c1d1327e2879d9a23c134815017efd88524933e6882f2b60

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