Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix CI for sm90
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed Mar 15, 2023
1 parent e6c34e0 commit 9b00558
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cmake/ThrustCudaConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
enable_language(CUDA)

set(THRUST_KNOWN_COMPUTE_ARCHS 35 37 50 52 53 60 61 62 70 72 75 80 86 90)
set(THRUST_KNOWN_COMPUTE_ARCHS 50 52 53 60 61 62 70 72 75 80 86)

if (NVIDIA STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER 11.7)
list(APPEND THRUST_KNOWN_COMPUTE_ARCHS 90)
endif()
if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 12.0)
list(APPEND THRUST_KNOWN_COMPUTE_ARCHS 35 37)
endif()
else()
list(APPEND THRUST_KNOWN_COMPUTE_ARCHS 35 37 90)
endif()

# Split CUDA_FLAGS into 3 parts:
#
Expand Down

0 comments on commit 9b00558

Please sign in to comment.