Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFO] Example BeforeMining.cmd overclock script #28

Closed
Balzhur opened this issue Nov 2, 2018 · 1 comment
Closed

[INFO] Example BeforeMining.cmd overclock script #28

Balzhur opened this issue Nov 2, 2018 · 1 comment

Comments

@Balzhur
Copy link

Balzhur commented Nov 2, 2018

Here is an improved version of my overclock script for different GPU/Algorithm combination.
Only an example to let people know how to implement overclocking for different GPU. Nvidia ONLY.
Based on new (unreleased yes) code by @angelbbs and his own overclock script.

PS: @angelbbs, люди в орининальном репо интересуются когда же бинарный релиз :)

@echo off
rem *** Place this script in the folder of miner you want to apply ovreclocking to ***

rem *** Set RUN=TRUE to enable this command script ***
SET RUN=TRUE
rem *** Set NOVISIBLE=TRUE to hide command window  ***
SET NOVISIBLE=TRUE

SetLocal EnableDelayedExpansion
SET LOG=logs/nhml-oc.log
SET MINER=CryptoDredge
SET PLATFORM=%1
SET MMODE=%2
SET ALGO=%3
SET DEVLIST=%~4

IF /I "%PLATFORM%"=="AMD" goto amd
IF /I "%PLATFORM%"=="NVIDIA" goto nvidia
goto :end

:nvidia
IF /I "%MMODE%"=="DUAL" goto nvidiadual
echo NVIDIA

FOR %%G IN (%DEVLIST%) DO (
	set GPU=%%G
	echo GPU:  !GPU!
	echo Algo: %ALGO%

REM *** Call OC subroutine with "CoreClock MemoryClock PowerTarget" as parameters ***
IF /I "%ALGO%"=="x16r" (
	if "!GPU!"=="0" call :OC 150 0 65
	if "!GPU!"=="1" call :OC 140 0 70

) ELSE IF /I "%ALGO%"=="skunk" (
	if "!GPU!"=="0" call :OC 170 -502 65
	if "!GPU!"=="1" call :OC 150 -600 70

) ELSE IF /I "%ALGO%"=="CryptoNightHeavy" (
	if "!GPU!"=="0" call :OC 90 500 65
	if "!GPU!"=="1" call :OC 100 450 70

) ELSE IF /I "%ALGO%"=="CryptoNightV8" (
	if "!GPU!"=="0" call :OC 90 500 65
	if "!GPU!"=="1" call :OC 100 450 70

) ELSE (
	echo Undefined Algorithm=%ALGO%, Default OC & SET ALGO=DEFAULT
	if "!GPU!"=="0" call :OC 110 450 65
	if "!GPU!"=="1" call :OC 110 450 70
))
goto :end

:nvidiadual
goto :end

:amd
goto :end

:OC
SET CORECLOCK=%1
SET MEMCLOCK=%2
SET PT=%3
rem I use GNU date to get nicely formatted date and time. http://gnuwin32.sourceforge.net/packages/coreutils.htm
C:\Unix\bin\date.exe +"[%%Y-%%m-%%d %%T] [INFO] OverClock GPU%GPU%: core=%CORECLOCK%	memory=%MEMCLOCK%	power=%PT%  (%MINER% %ALGO%)" >> %LOG%
C:\Utils\OverClock\nvidiaInspector.exe -setBaseClockOffset:%GPU%,0,%CORECLOCK% -setMemoryClockOffset:%GPU%,0,%MEMCLOCK% -setPowerTarget:%GPU%,%PT%
GOTO:EOF

:end
echo end
rem Do NOT disable this delay
timeout /t 1 /nobreak
exit
@Balzhur
Copy link
Author

Balzhur commented Dec 5, 2018

This example script have been added to Wiki.

@Balzhur Balzhur closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant