A (user-)friendly wrapper to nvidia-smi
Project description
nvsmi
A (user-)friendly wrapper to nvidia-smi
.
Usage
CLI
nvsmi --help
nvsmi ls --help
nvsmi ps --help
As a library
import nvsmi
nvsmi.get_gpus()
nvsmi.get_available_gpus()
nvsmi.get_gpu_processes()
Prerequisites
- An nvidia GPU
nvidia-smi
- Python 2.7 or 3.6+
Installation
pipx
The recommended installation method is pipx.
More specifically, you can install nvsmi
for your user with:
pipx install nvsmi
The above command will create a virtual environment in ~/.local/pipx/venvs/nvsmi
and
add the nvsmi
executable in ~/.local/bin
.
pip
Alternatively you can use good old pip
but this is more fragile than pipx
:
pip install --user nvsmi
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
nvsmi-0.3.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for nvsmi-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 538407ac3f83ef783244fbc7df237d930bf640b908aa84390b4ef97652daa703 |
|
MD5 | 8e341078d00b79271b3b280397628a76 |
|
BLAKE2b-256 | 6afac66dac87f9bd0dd54510dde4731ace4836a7b0ccd01f02641530b007a567 |