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-0.4.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

nvsmifs-0.4.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvsmifs-0.4.3.tar.gz
  • Upload date:
  • Size: 5.0 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-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c40eb810c026bf8b5fb1eaddb882e736a8c8796df32d1619e04157d88676b49e
MD5 ff359aadce805da314b1f5bad4081e9c
BLAKE2b-256 beaf1ab04252a54fc000a6f319f0a748b3780b3e022de8ce353620b49a7fecfe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvsmifs-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 342f6e83d0fc1b6f9aaeb95f49e2b22e68a4e41b7e5b70e3e14be5a5b7b3f1a8
MD5 ee4fbef109c2179702b8fe2e654bd575
BLAKE2b-256 65055cb92bb5736fa7435826c788961e890d18745d9c39c649c631b0ebbf215a

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