Skip to main content

Python utilities for the NVIDIA Management Library

Project description

[!WARNING]

This project has been deprecated.

The pynvml module is NOT developed or maintained in this project!

This project provides unofficial NVML Python utilities (i.e. the pynvml_utils module). The pynvml_utils module is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.

The pynvml_utils module depends on the official NVML bindings published by NVIDIA under a different nvidia-ml-py project (see: https://pypi.org/project/nvidia-ml-py/).

Python utilities for the NVIDIA Management Library

This project provides unofficial Python utilities for the NVIDIA Management Library (NVML).

For information about the NVML library, see the NVML developer page http://developer.nvidia.com/nvidia-management-library-nvml

Requires

nvidia-ml-py.

Installation

pip install .

Usage

Bindings for the high-level nvidia-smi API are available in pynvml_utils.nvidia_smi:

[!WARNING] The nvidia_smi module is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.

from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
nvsmi.DeviceQuery('memory.free, memory.total')
from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
print(nvsmi.DeviceQuery('--help-query-gpu'), end='\n')

Release Notes

  • Version 13.0.1
    • Both pynvml and pynvml_utils are now deprecated.
    • Pin to nvidia-ml-py>=12.0.0

Old Releases

  • Version 2.285.0
    • Added new functions for NVML 2.285. See NVML documentation for more information.
    • Ported to support Python 3.0 and Python 2.0 syntax.
    • Added nvidia_smi.py tool as a sample app.
  • Version 3.295.0
    • Added new functions for NVML 3.295. See NVML documentation for more information.
    • Updated nvidia_smi.py tool
      • Includes additional error handling
  • Version 4.304.0
    • Added new functions for NVML 4.304. See NVML documentation for more information.
    • Updated nvidia_smi.py tool
  • Version 4.304.3
    • Fixing nvmlUnitGetDeviceCount bug
  • Version 5.319.0
    • Added new functions for NVML 5.319. See NVML documentation for more information.
  • Version 6.340.0
    • Added new functions for NVML 6.340. See NVML documentation for more information.
  • Version 7.346.0
    • Added new functions for NVML 7.346. See NVML documentation for more information.
  • Version 7.352.0
    • Added new functions for NVML 7.352. See NVML documentation for more information.
  • Version 8.0.0
    • Refactor code to a nvidia_smi singleton class
    • Added DeviceQuery that returns a dictionary of (name, value).
    • Added filter parameters on DeviceQuery to match query api in nvidia-smi
    • Added filter parameters on XmlDeviceQuery to match query api in nvidia-smi
    • Added integer enumeration for filter strings to reduce overhead for performance monitoring.
    • Added loop(filter) method with async and callback support
  • Version 8.0.1
    • Restructuring directories into two packages (pynvml and nvidia_smi)
    • Adding initial tests for both packages
    • Some name-convention cleanup in pynvml
  • Version 8.0.2
    • Added NVLink function wrappers for pynvml module
  • Version 8.0.3
    • Added versioneer
    • Fixed nvmlDeviceGetNvLinkUtilizationCounter bug
  • Version 8.0.4
    • Added nvmlDeviceGetTotalEnergyConsumption
    • Added notes about NVML permissions
    • Fixed version-check testing
  • Version 11.0.0
    • Updated nvml.py to CUDA 11
    • Updated smi.py DeviceQuery to R460
    • Aligned nvml.py with latest nvidia-ml-py deployment
  • Version 11.4.0
    • Updated nvml.py to CUDA 11.4
    • Updated smi.py NVML_BRAND_NAMES
    • Aligned nvml.py with latest nvidia-ml-py deployment (11.495.46)
  • Version 11.4.1
    • Fix comma bugs in nvml.py
  • Version 11.5.0
    • Updated nvml.py to support CUDA 11.5 and CUDA 12
    • Aligned with latest nvidia-ml-py deployment (11.525.84)
  • Version 11.5.2
    • Relocated smi bindings to new pynvml_utils module
    • Updated README to encourage migration to nvidia-ml-py
  • Version 11.5.3
    • Update versioneer
  • Version 12.0.0
    • Remove pynvml module and depend on nvidia-ml-py instead
    • Pin to nvidia-ml-py>=12.0.0,<13.0.0a0

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynvml-13.0.1-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file pynvml-13.0.1.tar.gz.

File metadata

  • Download URL: pynvml-13.0.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pynvml-13.0.1.tar.gz
Algorithm Hash digest
SHA256 1245991d9db786b4d2f277ce66869bd58f38ac654e38c9397d18f243c8f6e48f
MD5 c87b2e5dcf26a55d3a2a4b8eae717591
BLAKE2b-256 5c57da7dc63a79f59e082e26a66ac02d87d69ea316b35b35b7a00d82f3ce3d2f

See more details on using hashes here.

File details

Details for the file pynvml-13.0.1-py3-none-any.whl.

File metadata

  • Download URL: pynvml-13.0.1-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pynvml-13.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b20e0a501eeec951e2455b7ab444759cf048e0e13a57b08049fa2775266aa8
MD5 cce4f7954c3478642bd92b5648ba742c
BLAKE2b-256 d74acac76c174bb439a0c46c9a4413fcbea5c6cabfb01879f7bbdb9fdfaed76c

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