GithubHelp home page GithubHelp logo

jetsonhacks / gpugraphtx Goto Github PK

View Code? Open in Web Editor NEW
95.0 4.0 43.0 54 KB

Simple moving graph of GPU activity for the Jetson TX1 and Jetson TX2

License: MIT License

Python 100.00%
jetson-tx2 jetson-tx1 nvidia-jetson-tx2 nvidia-jetson-tx1 gpu-activity

gpugraphtx's Introduction

gpuGraphTX

A very simple moving graph of GPU activity for the NVIDIA Jetson TX1 and Jetson TX2. This allows visualization of GPU utilization.

GPU Activity Window

The graph is implemented as an animated Python Matplotlib graph. The app requires the Python Matplotlib library.

For Python 2.7, Matplotlib may be installed as follows:

$ sudo apt-get install python-matplotlib

For Python 3, Matplotlib may be installed as follows:

$ sudo apt-get install python3-matplotlib

You can run the app:

$ ./gpuGraph.py

or:

$ python gpuGraph.py

or:

$ python3 gpuGraph.py

Monitoring from host machine

Provide user@ip as a command line argument when calling gpuGraph.py with the user and ip address of the Jetson board. A password of user will be prompted. It uses ssh to retrieve the GPU information from the Jetson board:

$ ./gpuGraph.py [email protected]

Release Notes

Initial Release May, 2018

  • L4T 28.2 (JetPack 3.2)
  • Tested on Jetson TX2
  • Tested on Jetson TX1

gpugraphtx's People

Contributors

jetsonhacks avatar moretticb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gpugraphtx's Issues

Can this work on Jetson Orin?

Thanks for the great work..
I am wondering.. can this work on Jetson Orin? I have seen your Orin tutorial and I think you use this repo for GPU monitoring...

Thanks in advance!

Is is able to use it for normal PCs with Nviida cards on Ubuntu?

Hi there,

First of all, thanks a lot for sharing it with the community. For me, I'd like to use it for normal PCs instead of Jetson TX1 and TX2. I have tried to adapted it to my usage, but I haven't found a proper way to do it. Maybe, do you happen to know how to do it?

Thanks again for your help!

Best,

Jun

New Xavier NX error

HI just bought a dev kit and am new to Linux.
Trying to run your gpyGraph and getting the error: -
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
What info do you need aboit the system?
Thanks
Anthony

error when running from the host

I ran it from the host by
python3 gpuGraph.py $JETSON@$IP
rsync was installed, but I have this error.
do you have any suggestion?

Traceback (most recent call last):
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3.py", line 88, in _on_timer
    TimerBase._on_timer(self)
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 1205, in _on_timer
    ret = func(*args, **kwargs)
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/animation.py", line 1449, in _step
    still_going = Animation._step(self, *args)
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/animation.py", line 1169, in _step
    self._draw_next_frame(framedata, self._blit)
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/animation.py", line 1188, in _draw_next_frame
    self._draw_frame(framedata)
  File "/home/bepro/.local/lib/python3.6/site-packages/matplotlib/animation.py", line 1766, in _draw_frame
    self._drawn_artists = self._func(framedata, *self._args)
  File "gpuGraph.py", line 75, in updateGraph
    fileData = subprocess.check_output(cmd.split(" ")).decode("utf-8")
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sshpass': 'sshpass'

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.