Skip to content

Instantly share code, notes, and snippets.

@gabrielsond
Last active May 11, 2022 03:00
Show Gist options
  • Save gabrielsond/f52aeb4fc9fe2664c1c40d03a33a084e to your computer and use it in GitHub Desktop.
Save gabrielsond/f52aeb4fc9fe2664c1c40d03a33a084e to your computer and use it in GitHub Desktop.
NBMiner Windows Elevated Script With Overclock Settings for NVIDIA RTX 3070 (V1/Non-LHR) @ 62.5MH/S
@echo off
goto :start
=======================================================================================
ASUS DUAL RTX 3070 OC https://www.techpowerup.com/gpu-specs/asus-dual-rtx-3070-oc.b8031
BIOS https://www.techpowerup.com/vgabios/231668/asus-rtx3070-8192-210308-1
------------------- System -------------------
OS: Windows 10 Version 2009, 10.0.22000
CPU: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
RAM: 19357 MB / 32524 MB
VMEM: 21988 MB / 37388 MB
CU_DRV: 11.6, 512.15
------------------- Device -------------------
|ID|PCI| CC|Memory|CU|
| 0| 1| 86| 8191M|46| NVIDIA GeForce RTX 3070
------------------ OverClock -----------------
|ID|PCI|Device|PwrLmt|CVolt|CClock|MClock|Fan|
| 0| 1| 3070| 123| | -200| +1350| |
----------------------------------------------
================== [nbminer v41.3] Summary 2022-05-10 20:57:35 ===================
|ID|Device|Hashrate|Accept|Reject|Inv|Powr|CTmp|MTmp|Fan|CClk|GMClk|MUtl|Eff/Watt|
| 0| 3070| 62.55 M| 5| 0| 0| 122| 60| | 56|1140| 8151| 100| 512.7 K|
|------------------+------+------+---+----+--------------------------------------|
| Total: 62.55 M| 5| 0| 0| 122| Uptime: 0D 00:02:00 CPU: 5% |
==================================================================================
:start
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
@echo on
nbminer -a ethash - -a ethash -o POOLURL -u USER --cclock -200 --mclock 1350 --pl 123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment