Skip to content

Commit

Permalink
[CUDA] Update Kepler(sm_3*) support info.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Artem-B committed Jun 2, 2023
1 parent a6a7a1b commit 0f49116
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clang/lib/Basic/Cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f49116

Please sign in to comment.