A library and CLI utilities for managing performance states of NVIDIA GPUs.
Project description
nvidia-pstate
A library and CLI utilities for managing performance states of NVIDIA GPUs.
Installation
pip3 install nvidia_pstate
Usage (CLI)
# List available performance states (TODO: does not work right now, use nvidia-smi -q and count memory clocks)
nvidia-pstate list-pstates
# Set performance state for specific GPU
nvidia-pstate set-pstate -i 0 -ps 0
# Let driver decide which performance state GPU should use
nvidia-pstate set-pstate -i 0 -ps 16
# Set performance state for all GPUs
nvidia-pstate set-pstate -ps 0
Usage (API)
from nvidia_pstate import set_pstate_low, set_pstate_high
set_pstate_low() # set pstate to "low" level (8 by default)
set_pstate_high() # set pstate to "high" level (16 by default)
# default values can be overrided using NVIDIA_PSTATE_LOW and NVIDIA_PSTATE_HIGH environment variables.
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
nvidia_pstate-1.0.3.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for nvidia_pstate-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91ddc708adaba3c86286a8b72ab92c1838c64324b9c0bb50d6dfdf2aa28ee3b |
|
MD5 | b1052d7cd923f99e8f567d9e6347cd03 |
|
BLAKE2b-256 | 18eb1dd23c49fe3294433cb167997086ed1526dc4c9442062f2078b10128c615 |