Coder Social home page Coder Social logo

nvidiagpumonitoring's Introduction

GPUDashboard

A simple dashboard for NVIDIA GPU flowchart

Demo

Example

Requirement

  • Python 2.7 or 3.6
  • NVIDIA-sim
  • A Firebase realtime database
  • Linux-like OS

Setup

  1. Create a Firebase Realtime database

  1. Set the rules to

{
  "rules": {
    ".read": true,
    ".write": true
  }
}
  1. Go to Project overview click Add Firebase to your web app and copy following part.

  var config = {
    apiKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    authDomain: "XXXXX.firebaseapp.com",
    databaseURL: "https://XXXXXX.firebaseio.com",
    projectId: "XXXXXXX",
    storageBucket: "XXXXXXX.appspot.com",
    messagingSenderId: "XXXXXXXXXXX"
  };
  1. On the servers that have NVIDIA GPU(s) installed.
pip install GPUDashboard
GPUDashboard -n your_server_name -i 20 -u your_databaseURL > GPUDashboard.log 

# your_server_name is the name you want to give your server e.g. MyFirstServer
# -i is the interval of GPU information updating
# your_databaseURL is the databaseURL obtained froom Firebase as shown above

Now, the server GPU information is post to the firebase. *If you have many servers, all of them can make use of the same database you created in Firebase. You only need to specify different names for "your_server_name" when you start the GPUDashboard in the command line on the different servers.

  1. Download ViewStatus.html and open with text editor then replace the "config".
<html>
    <header>
      <script>
        var config = {
            apiKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            authDomain: "XXXXX.firebaseapp.com",
            databaseURL: "https://XXXXXX.firebaseio.com",
            projectId: "XXXXXXX",
            storageBucket: "XXXXXXX.appspot.com",
            messagingSenderId: "XXXXXXXXXXX"
          };
      </script>
      <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
  1. Open the "modified ViewStatus.html" with browser.

nvidiagpumonitoring's People

Contributors

sundereshwar avatar

Watchers

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