Skip to content

Commit 2842362

Browse files
author
Bodhi Hu
committed
docs: use the builtin clang compiler for musa
1 parent 9333e73 commit 2842362

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/build.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,17 @@ This provides GPU acceleration using the MUSA cores of your Moore Threads MTT GP
202202
- Using `CMake`:
203203

204204
```bash
205-
cmake -B build -DGGML_MUSA=ON
205+
# build with MUSA and using the compilers from MUSA SDK:
206+
cmake -B build -DGGML_MUSA=ON \
207+
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
206208
cmake --build build --config Release
207209
```
208210
- For static build:
209211

210212
```bash
211213
cmake -B build -DGGML_MUSA=ON \
212-
-DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
214+
-DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
215+
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
213216
cmake --build build --config Release
214217
```
215218

0 commit comments

Comments
 (0)