Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Nov 13, 2023
1 parent aa3c01c commit 08127c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/cuda/validate-cuda-rapids.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if(NOT location EQUAL -1)
endif()

# Each item should be `number-real` and should be ordered from low to high.
# In addition the values should map to Pascal+ GPU arch ( 60+ )
set(previous_value 59)
# In addition the values should map to Volta+ GPU arch ( 70+ )
set(previous_value 69)
foreach(value IN LISTS CMAKE_CUDA_ARCHITECTURES)
# verify it ends with `-real`
string(FIND ${value} "-real" location)
Expand All @@ -34,13 +34,13 @@ foreach(value IN LISTS CMAKE_CUDA_ARCHITECTURES)
string(REPLACE "-real" "" value "${value}")
if( value LESS previous_value )
message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES values should be ordered lowest to highest."
"with lowest >= 60")
"with lowest >= 70")
endif()
endforeach()

if( last_value LESS previous_value )
message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES values should be ordered lowest to highest."
"with lowest >= 60")
"with lowest >= 70")
endif()

list(APPEND CMAKE_CUDA_ARCHITECTURES ${last_value})

0 comments on commit 08127c2

Please sign in to comment.