@dstm i think what @sp_ meant was if one of the GPUs hang/crashes, if the miner could exit.
Most of us including me have a bit more advanced batch scripts that get executed when miner crashes/reboots.
In my case, i apply overclocking every time before the miner process starts, since the OC settings sometimes get lost when gpu crashes.
For example what happened to me last night was, that the miner possibly got into some trouble (i don't know what happened) was down for 2 hours, when i woke up and did a routine check my batch script did restart the miner process.
But instead of one miner i had two miners running at the same time.
I guess your miner has some process restart functionality built in (which is nice) but some of us would like to handle such case manually if possible.
An option to simply exit the miner when gpu hangs/crashes would be greatly appreciated.
I see, could you post an example script pls.
Something like this for example
@echo off
:: Configuration variables
SET POOL=eu1-zcash.flypool.org
SET POOL_PORT=3333
SET WALLET=xxxxxxxxxxxxxxxxxxxxxxxx
SET WORKER_NAME=1080
SET PASSWORD=x
:: Logging
SET LOGGING_LEVEL=1
SET AUTORESTART_LOGFILE=autorestart.log
:: Infinite work loop
:start
@cd /d "%~dp0"
:: Log that miner is about to start
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a:%%b:%%c)
echo %mydate% %mytime% - %WORKER_NAME% starting... >> %AUTORESTART_LOGFILE%
:: Apply Overclock through nvidia inspector [gpuIndex, pstateId, offset], [gpuIndex, percent]
cd NvidiaInspector
nvidiaInspector -setBaseClockOffset:0,0,140 -setMemoryClockOffset:0,0,340 -setPowerTarget:0,90
cd ..
:: Start miner
zm --server %POOL% --port %POOL_PORT% --user %WALLET%.%WORKER_NAME% --pass %PASSWORD%
:: Log that miner crashed
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a:%%b:%%c)
echo %mydate% %mytime% - %WORKER_NAME% crashed... >> %AUTORESTART_LOGFILE%
:: Print to console that miner has crashed and wait 5 seconds
echo Miner has crashed... restarting in 5 seconds...
ping 127.0.0.1 -n 5 > nul
:: Resume normal operation
goto start