You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build.md
+8
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,8 @@ The following compilation options are also available to tweak performance:
198
198
199
199
### MUSA
200
200
201
+
This provides GPU acceleration using the MUSA cores of your Moore Threads MTT GPU. Make sure to have the MUSA SDK installed. You can download it from here: [MUSA SDK](https://developer.mthreads.com/sdk/download/musa).
202
+
201
203
- Using `make`:
202
204
```bash
203
205
make GGML_MUSA=1
@@ -209,6 +211,12 @@ The following compilation options are also available to tweak performance:
209
211
cmake --build build --config Release
210
212
```
211
213
214
+
The environment variable [`MUSA_VISIBLE_DEVICES`](https://docs.mthreads.com/musa-sdk/musa-sdk-doc-online/programming_guide/Z%E9%99%84%E5%BD%95/) can be used to specify which GPU(s) will be used.
215
+
216
+
The environment variable `GGML_CUDA_ENABLE_UNIFIED_MEMORY=1` can be used to enable unified memory in Linux. This allows swapping to system RAM instead of crashing when the GPU VRAM is exhausted.
217
+
218
+
Most of the compilation options available for CUDA should also be available for MUSA, though they haven't been thoroughly tested yet.
219
+
212
220
### hipBLAS
213
221
214
222
This provides BLAS acceleration on HIP-supported AMD GPUs.
0 commit comments