From: PureJourney Date: Fri, 21 Feb 2025 11:21:05 +0000 (+0800) Subject: CUDA: correct the lowest Maxwell supported by CUDA 12 (llama/11984) X-Git-Tag: upstream/1.7.4+203~56 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b1385e9aa97a356a85a55fade422f26bc064552f;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp CUDA: correct the lowest Maxwell supported by CUDA 12 (llama/11984) * CUDA: correct the lowest Maxwell supported by CUDA 12 --------- Co-authored-by: Johannes Gäßler --- 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}")