From 0f49116e261cf5a156221b006acb677e3565fd1a Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 2 Jun 2023 13:30:47 -0700 Subject: [PATCH] [CUDA] Update Kepler(sm_3*) support info. sm_30 and sm_32 were removed in cuda-11.0 sm_35 and sm_37 were removed in cuda-12.0 Differential Revision: https://reviews.llvm.org/D152027 --- clang/lib/Basic/Cuda.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/lib/Basic/Cuda.cpp b/clang/lib/Basic/Cuda.cpp index 7299b9f..356bfd6 100644 --- a/clang/lib/Basic/Cuda.cpp +++ b/clang/lib/Basic/Cuda.cpp @@ -222,7 +222,11 @@ CudaVersion MaxVersionForCudaArch(CudaArch A) { case CudaArch::SM_21: return CudaVersion::CUDA_80; case CudaArch::SM_30: - return CudaVersion::CUDA_110; + case CudaArch::SM_32: + return CudaVersion::CUDA_102; + case CudaArch::SM_35: + case CudaArch::SM_37: + return CudaVersion::CUDA_118; default: return CudaVersion::NEW; } -- 2.7.4