Skip to main content

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.

Files for nvsmi, version 0.3.0
Filename, size & hash File type Python version Upload date
nvsmi-0.3.0-py2.py3-none-any.whl (5.4 kB) View hashes Wheel py2.py3
nvsmi-0.3.0.tar.gz (5.1 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page