From: Oliver Walsh Date: Wed, 7 Jan 2026 21:32:44 +0000 (+0000) Subject: cuda : fix build on cuda 12.8 (llama/18672) X-Git-Tag: upstream/1.8.3~24 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4f2ca7c1630fc1e6bf844b26ed911a11ba6573d7;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cuda : fix build on cuda 12.8 (llama/18672) compute121 requires 12.9 Signed-off-by: Oliver Walsh --- diff --git a/ggml/src/ggml-cuda/CMakeLists.txt b/ggml/src/ggml-cuda/CMakeLists.txt index dcc00413..d313c1ac 100644 --- a/ggml/src/ggml-cuda/CMakeLists.txt +++ b/ggml/src/ggml-cuda/CMakeLists.txt @@ -47,7 +47,10 @@ if (CUDAToolkit_FOUND) # check Modules/Internal/CMakeCUDAArchitecturesValidate.cmake in the CMake git repository instead. # However, the architectures 120a-real and 121a-real should work with basically any CMake version and # until the release of e.g. Rubin there is no benefit to shipping virtual architectures for Blackwell. - list(APPEND CMAKE_CUDA_ARCHITECTURES 120a-real 121a-real) + list(APPEND CMAKE_CUDA_ARCHITECTURES 120a-real) + endif() + if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL "12.9") + list(APPEND CMAKE_CUDA_ARCHITECTURES 121a-real) endif() endif() endif()