From ce4545db1d31f447bb42987099d691d5658da4bf Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Tue, 17 Aug 2021 14:39:58 -0700 Subject: [PATCH] [CUDA] Bump the latest supported CUDA version to 11.4. This should reduce the amount of noise issued by clang for the recent-ish CUDA versions. Clang still does not support all the features offered by NVCC, but is expected to handle CUDA headers and produce binaries for all GPUs supported by NVCC. Differential Revision: https://reviews.llvm.org/D108248 --- clang/docs/ReleaseNotes.rst | 6 ++++++ clang/include/clang/Basic/Cuda.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index f728f5b4fcfc4..aaa471e9b9d41 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -117,6 +117,12 @@ C++2b Feature Support ^^^^^^^^^^^^^^^^^^^^^ ... +CUDA Language Changes in Clang +--------------------------- + +- Clang now supports CUDA versions up to 11.4. +- Default GPU architecture has been changed from sm_20 to sm_35. + Objective-C Language Changes in Clang ------------------------------------- diff --git a/clang/include/clang/Basic/Cuda.h b/clang/include/clang/Basic/Cuda.h index 1aa24d8060cfd..ef2023cabf7f8 100644 --- a/clang/include/clang/Basic/Cuda.h +++ b/clang/include/clang/Basic/Cuda.h @@ -33,7 +33,7 @@ enum class CudaVersion { CUDA_112, CUDA_113, CUDA_114, - FULLY_SUPPORTED = CUDA_101, + FULLY_SUPPORTED = CUDA_114, PARTIALLY_SUPPORTED = CUDA_114, // Partially supported. Proceed with a warning. NEW = 10000, // Too new. Issue a warning, but allow using it.