Skip to content

Commit 97c3a99

Browse files
authored
Remove incorrect CUDA defines (#123898)
Remove CUDA_127 and CUDA_129 defines incorrectly added in #123398
1 parent 9d676e2 commit 97c3a99

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

clang/include/clang/Basic/Cuda.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ enum class CudaVersion {
4444
CUDA_124,
4545
CUDA_125,
4646
CUDA_126,
47-
CUDA_127,
4847
CUDA_128,
49-
CUDA_129,
5048
FULLY_SUPPORTED = CUDA_123,
5149
PARTIALLY_SUPPORTED =
52-
CUDA_129, // Partially supported. Proceed with a warning.
50+
CUDA_128, // Partially supported. Proceed with a warning.
5351
NEW = 10000, // Too new. Issue a warning, but allow using it.
5452
};
5553
const char *CudaVersionToString(CudaVersion V);

clang/lib/Basic/Cuda.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ static const CudaVersionMapEntry CudaNameVersionMap[] = {
4444
CUDA_ENTRY(12, 4),
4545
CUDA_ENTRY(12, 5),
4646
CUDA_ENTRY(12, 6),
47-
CUDA_ENTRY(12, 7),
4847
CUDA_ENTRY(12, 8),
49-
CUDA_ENTRY(12, 9),
5048
{"", CudaVersion::NEW, llvm::VersionTuple(std::numeric_limits<int>::max())},
5149
{"unknown", CudaVersion::UNKNOWN, {}} // End of list tombstone.
5250
};
@@ -232,7 +230,7 @@ CudaVersion MinVersionForOffloadArch(OffloadArch A) {
232230
return CudaVersion::CUDA_120;
233231
case OffloadArch::SM_100:
234232
case OffloadArch::SM_100a:
235-
return CudaVersion::CUDA_127;
233+
return CudaVersion::CUDA_128;
236234
default:
237235
llvm_unreachable("invalid enum");
238236
}

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ CudaVersion getCudaVersion(uint32_t raw_version) {
8989
return CudaVersion::CUDA_125;
9090
if (raw_version < 12070)
9191
return CudaVersion::CUDA_126;
92-
if (raw_version < 12080)
93-
return CudaVersion::CUDA_127;
9492
if (raw_version < 12090)
9593
return CudaVersion::CUDA_128;
96-
if (raw_version < 12100)
97-
return CudaVersion::CUDA_129;
9894
return CudaVersion::NEW;
9995
}
10096

@@ -688,9 +684,7 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple,
688684
case CudaVersion::CUDA_##CUDA_VER: \
689685
PtxFeature = "+ptx" #PTX_VER; \
690686
break;
691-
CASE_CUDA_VERSION(129, 87);
692687
CASE_CUDA_VERSION(128, 87);
693-
CASE_CUDA_VERSION(127, 86);
694688
CASE_CUDA_VERSION(126, 85);
695689
CASE_CUDA_VERSION(125, 85);
696690
CASE_CUDA_VERSION(124, 84);

0 commit comments

Comments
 (0)