diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-04-16 07:43:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 07:43:13 -0500 |
commit | 9e7aab951ffba0211193ceb435c6b49e4e19ac24 (patch) | |
tree | 44fff257c6790f9ec2bb0cae00e7a4342e451c4f /clang/lib/Basic/Cuda.cpp | |
parent | f69ded0d9965a6b2b76ce12db876c70f249d96d1 (diff) | |
download | llvm-9e7aab951ffba0211193ceb435c6b49e4e19ac24.zip llvm-9e7aab951ffba0211193ceb435c6b49e4e19ac24.tar.gz llvm-9e7aab951ffba0211193ceb435c6b49e4e19ac24.tar.bz2 |
[CUDA] Rename SM_32 to SM_32_ to work around AIX headers (#88779)
Summary:
AIX headers define this, so we need to work around it. In the future
this will be removed but for now we should just rename it to avoid these
issues.
Diffstat (limited to 'clang/lib/Basic/Cuda.cpp')
-rw-r--r-- | clang/lib/Basic/Cuda.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/Cuda.cpp b/clang/lib/Basic/Cuda.cpp index 1b1da6a..113483d 100644 --- a/clang/lib/Basic/Cuda.cpp +++ b/clang/lib/Basic/Cuda.cpp @@ -86,7 +86,7 @@ static const CudaArchToStringMap arch_names[] = { // clang-format off {CudaArch::UNUSED, "", ""}, SM2(20, "compute_20"), SM2(21, "compute_20"), // Fermi - SM(30), SM(32), SM(35), SM(37), // Kepler + SM(30), {CudaArch::SM_32_, "sm_32", "compute_32"}, SM(35), SM(37), // Kepler SM(50), SM(52), SM(53), // Maxwell SM(60), SM(61), SM(62), // Pascal SM(70), SM(72), // Volta @@ -186,7 +186,7 @@ CudaVersion MinVersionForCudaArch(CudaArch A) { case CudaArch::SM_20: case CudaArch::SM_21: case CudaArch::SM_30: - case CudaArch::SM_32: + case CudaArch::SM_32_: case CudaArch::SM_35: case CudaArch::SM_37: case CudaArch::SM_50: @@ -231,7 +231,7 @@ CudaVersion MaxVersionForCudaArch(CudaArch A) { case CudaArch::SM_21: return CudaVersion::CUDA_80; case CudaArch::SM_30: - case CudaArch::SM_32: + case CudaArch::SM_32_: return CudaVersion::CUDA_102; case CudaArch::SM_35: case CudaArch::SM_37: |