Giter VIP home page Giter VIP logo

gpublame's Introduction

gpublame

Want to find out who's hogging the GPU? gpublame gives you the proof you need to duke it out in the group chat.

gpublame depends on nvidia-smi pmon, which means monitoring is limited to a maximum of 4 devices. You should be able to use CUDA_VISIBLE_DEVICES to select which devices to show. If someone with more than 4 GPUs would like to help me test code to support more than 4 devices, please reach out. :)

installation

Go to Releases and download the latest release for your architecture to somewhere on your PATH, e.g.:

wget 'https://github.com/kylrth/gpublame/releases/latest/download/gpublame-amd64' -O - | sudo tee /usr/bin/gpublame > /dev/null
sudo chmod +x /usr/bin/gpublame

Let me know if I don't build for your architecture so I can add it.

usage

$ gpublame
GPU Users:
0: kyle(1d2h3m4s)
1: jacob(5m6s)

For more info, add verbosity:

$ gpublame -v 3
GPU Users:
0: kyle(1d2h3m4s,pgid=3206794,cmd="python recognize_cats.py")
1: jacob(5m6s,pgid=3210318,cmd="cudaminer -H 1 -i 0 auto -C 1 -o stratum+tcp://pool.port -O worker:passwd")

Pretty simple.

package usage

You can use some gpublame functionality in your own Go code (see docs):

import (
    "context"

    "github.com/kylrth/gpublame"
)

func main() {
    info, err := gpublame.Pmon(context.Background())

    // ...
}

gpublame's People

Contributors

kylrth avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.