19 lines
395 B
Batchfile
19 lines
395 B
Batchfile
@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
|