54 lines
3 KiB
Batchfile
54 lines
3 KiB
Batchfile
@echo off
|
|
rem Igneum devnet mining test for Windows. Double-click this file.
|
|
rem It finds the GPUs in this PC, builds the matching GPU workers on first run (NVIDIA: CUDA, AMD: OpenCL), and runs
|
|
rem one igneum-miner per worker against the Mac node. Logs land next to this file and are uploaded every 60 seconds.
|
|
rem The window shows a dashboard: hash rate, blocks found and one line per miner. Stop with Ctrl+C; the window stays open at the end.
|
|
|
|
rem ---- settings: edit these lines only ----------------------------------------------------------
|
|
rem auto = a node on this PC (START-NODE.bat, 127.0.0.1) when one is running, else the Mac node at 192.168.68.64.
|
|
set "NODE_HOST=auto"
|
|
set "NODE_PORT=26610"
|
|
rem Devnet payout address (igneumdev:...). Leave empty for the miner's fixed test address.
|
|
set "PAYOUT_ADDRESS="
|
|
rem NVIDIA: CUDA device index (0 = first card) and the nvcc architecture (sm_120 = RTX 50 series; "native" lets nvcc pick).
|
|
set "NVIDIA_DEVICE=0"
|
|
set "CUDA_ARCH=sm_120"
|
|
rem AMD: by default the first OpenCL GPU whose vendor string contains AMD_VENDOR is used, never an NVIDIA device.
|
|
rem Set AMD_DEVICE to a flat device index from the worker's --list output to override.
|
|
set "AMD_VENDOR=Advanced Micro Devices"
|
|
set "AMD_DEVICE="
|
|
rem Miner identities per GPU vendor. Each identity runs its own worker process (about 1.3 GiB of GPU memory each) with its
|
|
rem own vote key and payout address derived from this PC's name and the index, and its own random nonce start.
|
|
set "MINERS=8"
|
|
rem Set to 0 to skip a vendor even if the hardware is present.
|
|
set "USE_NVIDIA=1"
|
|
set "USE_AMD=1"
|
|
rem Nonces per job (one job = one block template; a multiple of 32). Empty = the miner's default of 16,777,216, which an
|
|
rem RTX 5090 identity finishes in under a second. The integrated AMD GPU needs 100 s for that, so it mines stale templates
|
|
rem and reports late; 2,097,152 keeps its jobs near 10 s.
|
|
set "NVIDIA_JOB_NONCES="
|
|
set "AMD_JOB_NONCES=2097152"
|
|
rem The window shows a dashboard (one card per GPU, redrawn in place). Set PLAIN=1 for the old scrolling log instead;
|
|
rem the launcher also falls back to it by itself when the window is not a real console.
|
|
set "PLAIN=0"
|
|
rem Visual Studio: the MSVC toolset CUDA 12.8 accepts (14.30 = MSVC v143). Adjust the path if Visual Studio is elsewhere.
|
|
set "VCVARS=C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat"
|
|
set "VCVARS_VER=14.30"
|
|
rem -------------------------------------------------------------------------------------------------
|
|
|
|
cd /d "%~dp0"
|
|
if not exist "%~dp0start-mining.ps1" (
|
|
echo Please extract the whole zip first ^(right-click, Extract All^), then run START-MINING.bat from the extracted folder.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
where powershell >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo PowerShell was not found. Windows 10 and 11 ship it; nothing else can be done here.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0start-mining.ps1"
|
|
echo.
|
|
echo The mining test has stopped. The log files are next to this file and were uploaded if the upload tool is present.
|
|
pause
|