Skip to content

Commit 9fdd966

Browse files
committed
update build instructions with theRock rocm installation and release link
Signed-off-by: Hao Li <[email protected]>
1 parent d45f8c2 commit 9fdd966

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/build.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,21 +294,21 @@ You can download it from your Linux distro's package manager or from here: [ROCm
294294
cmake -S . -B build -G Ninja -DGPU_TARGETS=gfx1100 -DGGML_HIP=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
295295
cmake --build build
296296
```
297-
Since TheRock (The HIP Environment and ROCm Kit) has been released on https://github.com/ROCm/TheRock/, which is a lightweight open source build platform for HIP and ROCm.
298-
There is nightly build from https://therock-nightly-tarball.s3.amazonaws.com/, like therock-dist-windows-gfx1151-7.10.0a20251031.tar.gz for AMD Ryzen AI MAX CPU.
299-
Below is step for building with TheRock HIP backend for Windows. Download therock-dist-windows-gfx1151-xxx.tar.gz and uncompress it to C:\work\therock\.
300-
Also Set RC COMPILER with https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ installation
297+
TheRock (The HIP Environment and ROCm Kit) has been released on https://github.com/ROCm/TheRock/, which is a lightweight open source build platform for HIP and ROCm.
298+
Below is step for building llama.cpp for HIP backend for Windows.
299+
Download from https://github.com/ROCm/TheRock/releases and uncompress it to %HIP_PATH%.
300+
Also Set RC COMPILER with https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ installation, like C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/rc.exe
301+
Assuming a gfx1151-compatible AMD GPU from https://github.com/ROCm/TheRock/blob/main/RELEASES.md
301302

302303
```bash
303-
set HIP_PATH=C:\work\therock
304304
set HIP_PATH_70=%HIP_PATH%
305305
set LLVM_PATH=%HIP_PATH%
306306
set HIP_PLATFORM=amd
307307
set CMAKE_C_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang.exe
308308
set CMAKE_CXX_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang++.exe
309309
set CMAKE_RC_COMPILER="C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/rc.exe"
310310
set PATH=%HIP_PATH%\bin;%PATH%
311-
cmake -S . -B build -G Ninja -DGPU_TARGETS=gfx1151 -DGGML_HIP=ON -DCMAKE_C_COMPILER=%CMAKE_C_COMPILER% -DCMAKE_CXX_COMPILER=%CMAKE_CXX_COMPILER% -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=OFF -DCMAKE_RC_COMPILER=%CMAKE_RC_COMPILER%
311+
cmake -S . -B build -G Ninja -DGPU_TARGETS=gfx1151 -DGGML_HIP=ON -DCMAKE_C_COMPILER=%CMAKE_C_COMPILER% -DCMAKE_CXX_COMPILER=%CMAKE_CXX_COMPILER% -DCMAKE_BUILD_TYPE=Release -DCMAKE_RC_COMPILER=%CMAKE_RC_COMPILER%
312312
cmake --build build
313313
```
314314

0 commit comments

Comments
 (0)