#gpu #system #installed #command-line-tool #cli #native #tui

app nvidia

A Rust utility to retrieve information about NVIDIA GPUs installed in your system

Show the crate…

6 releases

0.1.13 Sep 25, 2024
0.1.12 Sep 25, 2024

#56 in #installed

Download history 181/week @ 2024-09-01 115/week @ 2024-09-08 62/week @ 2024-09-15 501/week @ 2024-09-22 43/week @ 2024-09-29 2/week @ 2024-10-06 1/week @ 2024-10-13

547 downloads per month

MIT license

160KB
150 lines

NVIDIA CLI

This is a command line tool to interface with NVIDIA GPUs. This tool has been developed in native Rust code. 🦀 We rely on the nvml-wrapper crate, developed by @cldfire. For the terminal user interface, we use the popular ratatui crate.

screenshot

Supported Configurations

  • Operating System:
    • Windows 11
    • Ubuntu Server 24.04 LTS Linux
  • NVIDIA Driver must be installed
    • Linux: sudo apt-get install nvidia-driver-550-server --yes
    • You can use the nvidia-smi command to validate that the NVIDIA GPU driver works correctly

Installation

Ensure that the Rust toolchain is installed on your system.

cargo install nvidia

Usage

Run this command:

nvidia

The program refreshes statistics every 200 milliseconds. At the moment, this threshold is not configurable. To exit the program, press the q key on your keyboard.

Uninstallation

You can remove the NVIDIA CLI tool with the following command:

cargo uninstall nvidia

Possible Issues

  • This application only looks at the first NVIDIA GPU in your system. Multiple GPUs not currently supported
  • If you don't have the NVIDIA GeForce driver installed, this utility won't work
  • Only tested this application on Windows 11 and Ubuntu Server Linux

License

MIT

Dependencies

~9–18MB
~253K SLoC