Skip to content

Commit 77485f7

Browse files
committed
Remove incorrect CUDA defines
1 parent b7b9ccf commit 77485f7

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
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 & 4 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

0 commit comments

Comments
 (0)