Skip to content

Commit

Permalink
kokkos#6805: arrange test alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Apr 10, 2024
1 parent bc07459 commit 7780ca7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions core/unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
endforeach()

set(${Tag}_SOURCES1B)
foreach(Name
set(${Tag}_TESTNAMES1B
MDRange_a
MDRange_b
MDRange_c
Expand All @@ -184,6 +184,7 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
MDRangePolicyConstructors
MDRangeReduce
MDSpan
MDSpanConversion
MinMaxClamp
NumericTraits
OccupancyControlTrait
Expand All @@ -205,6 +206,10 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
SharedAlloc
Swap
)
foreach(Name IN LISTS ${Tag}_TESTNAMES1B)
IF (NOT Kokkos_ENABLE_IMPL_MDSPAN)
LIST(REMOVE_ITEM ${Tag}_TESTNAMES2A MDSpanConversion)
ENDIF()
set(file ${dir}/Test${Tag}_${Name}.cpp)
# Write to a temporary intermediate file and call configure_file to avoid
# updating timestamps triggering unnecessary rebuilds on subsequent cmake runs.
Expand All @@ -217,8 +222,7 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
endforeach()

SET(${Tag}_SOURCES2A)
SET(${Tag}_TESTNAMES2A
MDSpanConversion
foreach(Name
TeamBasic
TeamCombinedReducers
TeamMDRange
Expand Down Expand Up @@ -251,13 +255,7 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
ViewResize
WorkGraph
WithoutInitializing
)

IF (NOT Kokkos_ENABLE_IMPL_MDSPAN)
LIST(REMOVE_ITEM ${Tag}_TESTNAMES2A MDSpanConversion)
ENDIF()

foreach(Name IN LISTS ${Tag}_TESTNAMES2A)
)
set(file ${dir}/Test${Tag}_${Name}.cpp)
# Write to a temporary intermediate file and call configure_file to avoid
# updating timestamps triggering unnecessary rebuilds on subsequent cmake runs.
Expand Down

0 comments on commit 7780ca7

Please sign in to comment.