Giter Site home page Giter Site logo

yoyonel / gmonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mountassir/gmonitor

0.0 3.0 0.0 69 KB

gmonitor is a GPU monitor (Nvidia only at the moment)

License: GNU General Public License v3.0

C++ 91.69% Makefile 1.26% Objective-C 7.04%

gmonitor's Introduction

 photo gmonitor_zpsx1swlyn7.png

What is gmonitor?

This is a GPU monitoring program, it monitors the core usage, VRAM usage, PCI-E & memory bus usage and the temperature of the GPU. I write CUDA programs and always needed a way to monitor how they behave in real time, searched for an MSI afterburner like programs on GNU/Linux systems but couldn't find any, so I decided to put this together and have been using it for quite some time now. Though this is quite minimal, it's good enough for what I needed it.

Running environment:

This has been developed and used in a machine running Ubuntu, I have not tested it in any other systems.

Requirements:

At least one NVIDIA GPU, this only supports NVIDIA GPUs for now as I only needed this to monitor my CUDA programs. Support for AMD/Intel cards might come in the future if needed, feel free to add them as well.

This program probes the NVIDIA drivers for statistics through nvidia-settings, make sure the NVIDA drivers are properly installed on your system.

CUDA install:

Follow Nvidia CUDA install guide to install CUDA on your machine, If you face issues with the nouveau driver, try this Nouveau workaround.

Usage:

Download the executable in the folder "compiled" or compile your own from the source code in the folder "src", run the executable with the following arguments:

-d [displayMode]
0 (default) Monitor both current and previous GPU states.
1 Monitor most recent GPU state only.
2 Monitor previous GPU states only.
3 Same as 0, print current states for all GPU then print history.

-g [gpuNumber]
GPU numbers to monitor, primary GPU's number is 0...

-r [refreshRate]
Monitoring refresh rate (default is 2 seconds).

-h
Display this menu.

Examples:

Monitor the most recent state only for the first and third gpu.

gmonitor -d 1 -g 02

Monitor current and history states for 4 GPUs.

gmonitor -d 0 -g 0123

Monitor both current and previous states for all GPUs, refresh every 3 seconds.

gmonitor -d 0 -r 3

Limitations:

This only supports Nvidia cards at the moment and support for other cards might be added in the future. Multi GPU support have not been tested, it should scale and work with any number of available GPUs but I have not tested it myself as I only have one card.

gmonitor's People

Contributors

mountassir avatar

Watchers

James Cloos avatar  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.