Advertisements

NiceHashMinerLegacy 1.8.1.4 Pre-release 2にて、ドライバのクラッシュ時のスクリプト起動に対応したらしい

  • このエントリーをはてなブックマークに追加
Advertisements

数日振りの更新。NiceHashMinerの更新がありました。1と2両方ともですね。
なんだかよくわかりませんが、2の方で掘っていたPCで、ベンチマークがうまくいかず、1の方に変更しました。

Advertisements

そんでもって、1の方がとても素晴らしいアップデートがありました。まだプレリリース版ですけど。

そのアップデートとは、こちらです。

CUDAデバイスがロストした時、スクリプトを実行するオプションが追加されました。
CUDAデバイスがロストとはつまり、グラフィックドライバがクラッシュした時に、バッチファイルを実行するということです。それによって、クラッシュ時に自動的に再起動したりなんやらが出来るという事です。超便利。
※あくまでもCUDAデバイスなので、NVIDIAのみです。AMD系は多分無理です。

やり方は、Settingに下記赤線の項目があるので、そこにチェックボックスを入れます。

実際に走らせるスクリプトは、同梱にある「OnGPUsLost.bat」というファイルが実行されるようです。
中身を見てみましょう。

:: This script contains two option how you can "repair" lost GPU
:: Default option (option 1) will restart your entire rig, you can also uncomment "NirCMD" to make a screenshot befor reboot (you need to place NirCMD in NHML directory under "NirCMD\nircmd.exe")
:: Second option will use nvidiaInspector to restart display drivers, you need to place "NvidiaInspector" in NHML directory under "NV_Inspector\nvidiaInspector.exe", this will set GPU profile (OC etc.) to default so it will also select MSI Afterburner profile
:: Option 1 is used by default, if you whant to use Option 2 you need to change line "set OPTION=1" to "set OPTION=2"
:: Remember that Option 2 requires "nvidiaInspector" and MSIAfterburner, you can tune Option 2 to your needs (look for comments for more clues)
@echo off
::Select desire option here
set OPTION=1
IF %OPTION%==2 GOTO OPT2

:OPT1
:: Option 1: restart RIG
echo %DATE% %TIME% >> logs\GPU_Lost.txt
::NirCMD\nircmd.exe savescreenshot "logs\GPU_Lost_%date:/=-%-%time::=-%.jpg"
::timeout 4
shutdown -r -f -t 0
exit

:OPT2
:: Option 2: close NHML, restart display drivers, start NHML, nvidiaInspector is required in NHML directory
echo %DATE% %TIME% Lost GPU >> logs\GPU_Lost.txt
::NirCMD\nircmd.exe savescreenshot "logs\GPU_Lost_%date:/=-%-%time::=-%.jpg"
::timeout 2
taskkill /IM NiceHashMinerLegacy.exe
timeout 3
NV_Inspector\nvidiaInspector.exe -restartDisplayDriver
:: It is possible that this timeout should be increased when more GPUs are present
timeout 12
:: Save your custom config for all GPUs under same profile number, if you use default config for your GPUs this step is not required
"c:\Program Files (x86)\MSI Afterburner\MSIAfterburner.exe" -Profile2
echo %DATE% %TIME% Profile 2 set >> logs\GPU_Lost.txt
timeout 4
start NiceHashMinerLegacy.exe

大雑把に説明すると、ログを出力して、”shutdown -r -f -t 0”で再起動処理をするようです。

また、8行目に”set OPTION=1”とありますが、ここを2にすると、別の動きになります。
恐らく、一度ドライバとNicehashマイナー自体を再起動するようです。
ついでに、Afterburnerも再起動して、2番目のプロファイルに再設定する命令が書かれているようです。

このオプションによって、安定稼動がしやすくなったのかなーと思います。
バッチファイルを走らせる処理ですので、自分のお好みのスクリプトに変えることも可能です。

それではでは。

Advertisements

SNSでもご購読できます。

人気記事

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

Advertisements