Skip to content

Commit

Permalink
guard for openmptarget
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Jul 17, 2023
1 parent b7ba3c9 commit 6423c55
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion algorithms/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ foreach(Tag Threads;Serial;OpenMP;Cuda;HPX;HIP;SYCL;OpenMPTarget)
list(APPEND STDALGO_TEAM_SOURCES_A Test${Name}.cpp)
endforeach()


endif()
endforeach()

Expand Down Expand Up @@ -208,6 +207,17 @@ if(KOKKOS_ENABLE_OPENMPTARGET AND KOKKOS_CXX_COMPILER_ID STREQUAL IntelLLVM)
)
endif()

# need to remove tests for OpenMPTarget because in these cases
# the impl needs to use either Kokkos or tailored reducers
# which results in runtime memory errors.
if(KOKKOS_ENABLE_OPENMPTARGET)
list(REMOVE_ITEM STDALGO_TEAM_SOURCES_A
TestStdAlgorithmsTeamAdjacentFind.cpp
TestStdAlgorithmsTeamLexicographicalCompare.cpp
)
endif()


foreach(ID A;B;C;D;E)
KOKKOS_ADD_EXECUTABLE_AND_TEST(
AlgorithmsUnitTest_StdSet_${ID}
Expand Down

0 comments on commit 6423c55

Please sign in to comment.