Skip to content

Commit

Permalink
[backport] When building with CUDA 12.8+ enable blackwell support (#1…
Browse files Browse the repository at this point in the history
…1187) (#11191)

Co-authored-by: Robert Maynard <[email protected]>
  • Loading branch information
hcho3 and robertmaynard authored Jan 31, 2025
1 parent 600be4d commit 3b19332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function(compute_cmake_cuda_archs archs)

# Set up defaults based on CUDA varsion
if(NOT CMAKE_CUDA_ARCHITECTURES)
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
if(CUDA_VERSION VERSION_GREATER_EQUAL "12.8")
set(CMAKE_CUDA_ARCHITECTURES 50 60 70 80 90 100 120)
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
set(CMAKE_CUDA_ARCHITECTURES 50 60 70 80 90)
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
set(CMAKE_CUDA_ARCHITECTURES 50 60 70 80)
Expand Down

0 comments on commit 3b19332

Please sign in to comment.