Giter Club home page Giter Club logo

nvidia-smi-plus's Introduction

nvidia-smi++

A tool for enriching the output of nvidia-smi.

Additional features

When checking process information, you can get

  • a docker container name instead of an username
  • an execution command instead of a process name
  • a colored output for better readability

Notes: why do you want to check docker container name instead of an username?

If nvidia-docker users do not specify their username when executing their docker containers, usernames of processes are always 'root' by default. So, the username information isn't informative. Instead, I visualize a nvidia-docker container name to check who is running a process.

Install

pip3 install nvidia-htop

and copy nvidia-smi-plus.py into any directory you want. (recommend $HOME directory)

Then, chmod +x nvidia-smi-plus.py

It will make the file executable.

Add an alias into your ~/.zshrc or ~/.bashrc

alias nvidia-smi='$YOUR_DIRECTORY/nvidia-smi-plus.py'

If you want colored output,

alias nvidia-smi='$YOUR_DIRECTORY/nvidia-smi-plus.py -c'

If you want an output with commandline length,

alias nvidia-smi='$YOUR_DIRECTORY/nvidia-smi-plus.py -l'

Apply your updated file,

source ~/.zshrc # or
source ~/.bashrc

Usage

Just run the following command:

nvidia-smi

๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š

Screenshot

Screenshot

Acknowledgements

This repo highly depends on https://github.com/peci1/nvidia-htop. Thanks for his nice work!

nvidia-smi-plus's People

Contributors

wonjongg avatar

Stargazers

Junyong Lee avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.