LLM inference in C/C++
C++ ggml
musa: drop mp_21 from the default architectures (#30203)
R0CKSTAR86a283532072
diff --git a/docs/build.md b/docs/build.mdindex 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:```bashcmake -B build -DGGML_MUSA=ON -DMUSA_ARCHITECTURES="31"diff --git a/ggml/src/ggml-musa/CMakeLists.txt b/ggml/src/ggml-musa/CMakeLists.txtindex 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}")