Skip to content

Commit

Permalink
Use ptx 8.5 with cuda-12.6, and enable ptx 8.6 with the newer CUDA ve…
Browse files Browse the repository at this point in the history
…rsions
  • Loading branch information
Artem-B committed Oct 14, 2024
1 parent 5dac14a commit aee63ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Basic/Cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ CudaVersion MinVersionForOffloadArch(OffloadArch A) {
case OffloadArch::SM_90a:
return CudaVersion::CUDA_120;
case OffloadArch::SM_100:
return CudaVersion::CUDA_126;
return CudaVersion::NEW; // TODO: use specific CUDA version once it's public.
default:
llvm_unreachable("invalid enum");
}
Expand Down
6 changes: 5 additions & 1 deletion clang/lib/Driver/ToolChains/Cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,11 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple,
case CudaVersion::CUDA_##CUDA_VER: \
PtxFeature = "+ptx" #PTX_VER; \
break;
CASE_CUDA_VERSION(126, 86);
// TODO: Use specific CUDA version once it's public.
case clang::CudaVersion::NEW:
PtxFeature = "+ptx86";
break;
CASE_CUDA_VERSION(126, 85);
CASE_CUDA_VERSION(125, 85);
CASE_CUDA_VERSION(124, 84);
CASE_CUDA_VERSION(123, 83);
Expand Down

0 comments on commit aee63ae

Please sign in to comment.