Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: stalkerX on August 27, 2017, 10:01:36 AM



Title: [BATCH] Simple (Local) Monitoring for NVIDIA GPUs
Post by: stalkerX on August 27, 2017, 10:01:36 AM
Everyone monitors their video cards in different ways: someone through AfterBurner, someone through the GPU-Z tool. I use a simple batch file in five lines. It's easy to read and can be customized, if anything is missing. Note: The batch file displays information/benchmarks about the NVIDIA cards, it's not a WatchDog.

Code:
@echo off

mode con cols=75 lines=8
title NVIDIA GPUs
color 0b

PATH=%PATH%;"%PROGRAMFILES%\NVIDIA Corporation\NVSMI\"

:loop
nvidia-smi --query-gpu=index,name,clocks.gr,power.draw,utilization.gpu,fan.speed,temperature.gpu --format=csv,noheader
timeout /t 10 >nul
@cls
goto loop

I'll tell you what and how:

- Line 3. - the size of the window (who has many cards).
- Line 4. - the (window) title.
- Line 5. - the output color (http://www.robvanderwoude.com/ntcolor.php).
- Line 8. - query-gpu (http://nvidia.custhelp.com/app/answers/detail/a_id/3751/~/useful-nvidia-smi-queries) values separated by comma.

Default benchmark columns (separated by commas):
- ID
- Card name
- Overclock (MHz)
- Power (W)
- Load (%)
- Fan speed (%)
- Temperature (°C)

Preview: http://imgur.com/a/fTX4C


Donations are welcome ;)
ETH: 0xBA3190c0e2B45c0441D7eB274D3105568085D99f (https://etherscan.io/address/0xBA3190c0e2B45c0441D7eB274D3105568085D99f)
BTC: 1DjNKyaUMCPNcj5RKqzdPQgkw5TQQeuYuy (https://blockchain.info/address/1DjNKyaUMCPNcj5RKqzdPQgkw5TQQeuYuy)