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
Prerequirements
Linux
Make sure you have the proprietary NVIDIA driver and the package providing libnvidia-api.so
installed.
- ArchLinux:
nvidia-utils
- Debian:
libnvidia-api1
- Ubuntu:
libnvidia-gl-535
(?)
Windows
Make sure the NVIDIA driver is installed.
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 -q
# Set performance state for specific GPU
nvidia-pstate -i 0 -ps 0
# Let driver decide which performance state GPU should use
nvidia-pstate -i 0 -ps 16
# Set performance state for specific GPUs
nvidia-pstate -i 0 1 3 4 -ps 0
# Set performance state for all GPUs
nvidia-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
Release history Release notifications | RSS feed
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.5.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for nvidia_pstate-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b611a49546f786276b04f2c6726f1247a6b294d80d4104cb9b68a7872b201cca |
|
MD5 | 7ffc081723525a0028e24f352cfb51b1 |
|
BLAKE2b-256 | 992c08ed10ed77e5b53118e7af94994edb548975fc1303e8a9b0fbb4a3eefaff |