darkseed / gpu-streamz

Live GPU monitoring with streamz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gpu-streamz

Live GPU monitoring with streamz

mov

This works by periodically parsing the output of nvidia-smi for GPU utilization and memory usage and streaming the results.

Installation

Note: this uses a branch of streamz that is not yet merged into master.

git clone https://github.com/EthanRosenthal/gpu-streamz.git
cd gpu-streamz

conda env create -f environment.yml
conda activate gpu-streamz

# Install this streamz fork
pip install -e git+https://github.com/philippjfr/streamz.git@ced72b2583292decf928fae75613c20d068ab874#egg=streamz

# Install gpu_streamz
pip install -e .

Usage

The following has to be run in a separate notebook from the one in which you're running your calculations (otherwise it won't update during the calculation).

from gpu_streamz import GPUMonitor

monitor = GPUMonitor()
monitor.start()

notebook

About

Live GPU monitoring with streamz

License:MIT License


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%