rockm
This commit is contained in:
18
rin/miner/hip-output/build-hip.bat
Normal file
18
rin/miner/hip-output/build-hip.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
where hipcc >nul 2>nul
|
||||
if errorlevel 1 (
|
||||
echo ERROR: hipcc not found. Please install ROCm/HIP toolchain.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if not exist build mkdir build
|
||||
cd build
|
||||
cmake -G "Ninja" -DHIP_PLATFORM=amd -DCMAKE_BUILD_TYPE=Release ..
|
||||
if errorlevel 1 exit /b 1
|
||||
cmake --build . -j
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
cd ..
|
||||
echo Build done. Executable should be at build\rinhash-hip-miner.exe
|
Reference in New Issue
Block a user