Commit 86a283532 for llama.cpp
commit 86a283532072722c5f3363d37d59a874d09fa99b
Author: R0CKSTAR <yeahdongcn@gmail.com>
Date: Fri Oct 9 18:51:24 2026 +0800
musa: drop mp_21 from the default architectures (#30203)
* musa: drop mp_21 from the default architectures
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
* Address review comments
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
* Address review comments
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
---------
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
diff --git a/docs/build.md b/docs/build.md
index 08a8f3333..7286ec58d 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -351,7 +351,7 @@ cmake --build build --config Release
#### Override Compute Capability Specifications
-By default, all supported compute capabilities are enabled. To customize this behavior, you can specify the `MUSA_ARCHITECTURES` option in the CMake command:
+By default, compute capabilities `2.2` (MTT S4000) and `3.1` (MTT S5000) are enabled, compute capability `2.1` (MTT S70, MTT S80, MTT S3000) is deprecated and has to be enabled explicitly. To customize this behavior, you can specify the `MUSA_ARCHITECTURES` option in the CMake command:
```bash
cmake -B build -DGGML_MUSA=ON -DMUSA_ARCHITECTURES="31"
diff --git a/ggml/src/ggml-musa/CMakeLists.txt b/ggml/src/ggml-musa/CMakeLists.txt
index 82b754f41..721621a1d 100644
--- a/ggml/src/ggml-musa/CMakeLists.txt
+++ b/ggml/src/ggml-musa/CMakeLists.txt
@@ -21,7 +21,10 @@ if (MUSAToolkit_FOUND)
message(STATUS "MUSA Toolkit found")
if (NOT DEFINED MUSA_ARCHITECTURES)
- set(MUSA_ARCHITECTURES "21;22;31")
+ set(MUSA_ARCHITECTURES "22;31")
+ endif()
+ if ("21" IN_LIST MUSA_ARCHITECTURES)
+ message(WARNING "MUSA architecture 21 (MTT S70, MTT S80, MTT S3000) is deprecated and no longer tested")
endif()
message(STATUS "Using MUSA architectures: ${MUSA_ARCHITECTURES}")