From 9e3bae50bad37ec61b8459919bb9ce92e74c73c8 Mon Sep 17 00:00:00 2001 From: zmy Date: Tue, 17 Nov 2020 21:15:07 +0800 Subject: [PATCH] update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 54d53da..5c19e96 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,16 @@ A naive tool for observing gpu status and auto set visible gpu in python code. ## How to use 1. install the package. -``` +```shell pip install https://git.zmy.pub/zmyme/gpuutil/archive/v0.0.2.tar.gz ``` 2. for observing gpu status, just input -``` +```shell python -m gpuutil ``` when directly running ```python -m gpuutil```, you would probably get: -``` +```text +---+------+------+---------+---------+------+---------------+ |ID | Fan | Temp | Pwr | Freq | Util | Vmem | +---+------+------+---------+---------+------+---------------+ @@ -27,7 +27,7 @@ when directly running ```python -m gpuutil```, you would probably get: [38694|0] user2(783 MiB) python train.py --some --other -args ``` To get more information, run ```python -m gpuutil -h```, you would get: -``` +```text python __main__.py -h usage: __main__.py [-h] [--profile PROFILE] [--cols COLS] [--show-process SHOW_PROCESS] [--save]