Skip to content

Commit

Permalink
Add support for new architectures in CUDA 12.8
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 23, 2025
1 parent f2e0216 commit b3fc6a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rapids-cmake/cuda/set_architectures.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#=============================================================================
# Copyright (c) 2021-2024, NVIDIA CORPORATION.
# Copyright (c) 2021-2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,14 +56,18 @@ Result Variables
function(rapids_cuda_set_architectures mode)
list(APPEND CMAKE_MESSAGE_CONTEXT "rapids.cuda.set_architectures")

set(supported_archs "70" "75" "80" "86" "90")
set(supported_archs "70" "75" "80" "86" "90" "100" "120")

if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 11.1.0)
list(REMOVE_ITEM supported_archs "86")
endif()
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 11.8.0)
list(REMOVE_ITEM supported_archs "90")
endif()
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 12.8.0)
list(REMOVE_ITEM supported_archs "120")
list(REMOVE_ITEM supported_archs "100")
endif()

if(${mode} STREQUAL "RAPIDS")

Expand Down

0 comments on commit b3fc6a8

Please sign in to comment.