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 May 15, 2024
1 parent df61bc2 commit 1d83ecb
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 @@ -174,7 +174,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 @@ -185,6 +185,7 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;OpenMPTarget;OpenACC;HIP;SYCL)
MDRangePolicyConstructors
MDRangeReduce
MDSpan
MDSpanConversion
MinMaxClamp
NumericTraits
OccupancyControlTrait
Expand All @@ -206,6 +207,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 @@ -218,8 +223,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 @@ -252,13 +256,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 1d83ecb

Please sign in to comment.