From 86a283532072722c5f3363d37d59a874d09fa99b Mon Sep 17 00:00:00 2001 From: R0CKSTAR Date: Fri, 9 Oct 2026 18:51:24 +0800 Subject: [PATCH] musa: drop mp_21 from the default architectures (#30203) * musa: drop mp_21 from the default architectures Signed-off-by: Xiaodong Ye * Address review comments Signed-off-by: Xiaodong Ye * Address review comments Signed-off-by: Xiaodong Ye --------- Signed-off-by: Xiaodong Ye --- docs/build.md | 2 +- ggml/src/ggml-musa/CMakeLists.txt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/build.md b/docs/build.md index 08a8f33336..7286ec58de 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 82b754f41e..721621a1d8 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}")