Skip to main content

A (user-)friendly wrapper to nvidia-smi

Project description

nvsmifs

A (user-)friendly wrapper to nvidia-smi forked from https://github.com/pmav99 to include fan speed support.

It can be used to filter the GPUs based on resource usage (e.g. to choose the least utilized GPU on a multi-GPU system).

Usage

CLI

nvsmifs --help
nvsmifs ls --help
nvsmifs ps --help

As a library

import nvsmifs

nvsmifs.get_gpus()
nvsmifs.get_available_gpus()
nvsmifs.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 nvsmifs for your user with:

pipx install nvsmifs

The above command will create a virtual environment in ~/.local/pipx/venvs/nvsmifs and add the nvsmifs executable in ~/.local/bin.

pip

Alternatively you can use good old pip but this is more fragile than pipx:

pip install --user nvsmifs

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

nvsmifs-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

nvsmifs-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file nvsmifs-1.0.0.tar.gz.

File metadata

  • Download URL: nvsmifs-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.3 Linux/6.14.5-300.fc42.x86_64

File hashes

Hashes for nvsmifs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c7867806425e3dd79e91b43e56cc37e30471d76dfe5a5bf2589af06af2c95c5
MD5 00a5d1c1dc580b118984407533695ea5
BLAKE2b-256 1de5c5c64c83d2a361feaa1ebd0865e7caa99ef2377cade9179d3decfdafce10

See more details on using hashes here.

File details

Details for the file nvsmifs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nvsmifs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.3 Linux/6.14.5-300.fc42.x86_64

File hashes

Hashes for nvsmifs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2b140c864a562970955bc9c3ca773e20f6bf66140521ac71a3938ad9294d40
MD5 23fcdaef1bae062636fe46e8f7f85fec
BLAKE2b-256 4cbaee0d903d09b36452baf1c368f4abc5750412d24c58d3801b06059469b3fb

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