From 7f1dfecde5109f6c06d7d364cc9a557fed829730 Mon Sep 17 00:00:00 2001 From: Brian Kelley Date: Thu, 8 Aug 2024 11:26:28 -0600 Subject: [PATCH] Don't error out if graph unit tests disabled Graph unit tests, with TEST_ETI_ONLY=ON, require double and/or float to be enabled as scalars. Instead of erroring out the configure, just give a warning and disable the graph tests. --- graph/unit_test/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/graph/unit_test/CMakeLists.txt b/graph/unit_test/CMakeLists.txt index b497953159..00fa135481 100644 --- a/graph/unit_test/CMakeLists.txt +++ b/graph/unit_test/CMakeLists.txt @@ -10,12 +10,17 @@ KOKKOSKERNELS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_C # # ##################### +SET(KK_ENABLE_GRAPH_TESTS ON) + IF (KokkosKernels_TEST_ETI_ONLY) IF (NOT KokkosKernels_INST_DOUBLE AND NOT KokkosKernels_INST_FLOAT) - MESSAGE(FATAL_ERROR "Because only ETI'd type combinations are enabled for testing, the Kokkos Kernels graph tests require that double or float is enabled in ETI.") + MESSAGE(WARNING "Because only ETI'd type combinations are enabled for testing, the Kokkos Kernels graph tests require that double or float is enabled in ETI.") + SET(KK_ENABLE_GRAPH_TESTS OFF) ENDIF () ENDIF () +IF(KK_ENABLE_GRAPH_TESTS) + ##################### # # # Add GPU backends # @@ -97,4 +102,4 @@ IF (KOKKOS_ENABLE_THREADS) COMPONENTS graph ) ENDIF () - +ENDIF ()