From b1385e9aa97a356a85a55fade422f26bc064552f Mon Sep 17 00:00:00 2001 From: PureJourney Date: Fri, 21 Feb 2025 19:21:05 +0800 Subject: [PATCH] CUDA: correct the lowest Maxwell supported by CUDA 12 (llama/11984) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * CUDA: correct the lowest Maxwell supported by CUDA 12 --------- Co-authored-by: Johannes Gäßler --- ggml/src/ggml-cuda/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-cuda/CMakeLists.txt b/ggml/src/ggml-cuda/CMakeLists.txt index 682640b5..e63ede2f 100644 --- a/ggml/src/ggml-cuda/CMakeLists.txt +++ b/ggml/src/ggml-cuda/CMakeLists.txt @@ -7,7 +7,7 @@ if (CUDAToolkit_FOUND) if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES) # native == GPUs available at build time - # 52 == Maxwell, lowest CUDA 12 standard + # 50 == Maxwell, lowest CUDA 12 standard # 60 == P100, FP16 CUDA intrinsics # 61 == Pascal, __dp4a instruction (per-byte integer dot product) # 70 == V100, FP16 tensor cores @@ -17,7 +17,7 @@ if (CUDAToolkit_FOUND) elseif(GGML_CUDA_F16 OR GGML_CUDA_DMMV_F16) set(CMAKE_CUDA_ARCHITECTURES "60;61;70;75;80") else() - set(CMAKE_CUDA_ARCHITECTURES "52;61;70;75;80") + set(CMAKE_CUDA_ARCHITECTURES "50;61;70;75;80") endif() endif() message(STATUS "Using CUDA architectures: ${CMAKE_CUDA_ARCHITECTURES}")