From 4feae9ea03f7400d2cbf34d46e7499efe439cf23 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Fri, 14 Apr 2023 10:34:27 -0400 Subject: [PATCH] Reduce size of ScatterView test when using OpenMP --- containers/unit_tests/TestScatterView.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/containers/unit_tests/TestScatterView.hpp b/containers/unit_tests/TestScatterView.hpp index 8dc3c423a7..2238a43c8a 100644 --- a/containers/unit_tests/TestScatterView.hpp +++ b/containers/unit_tests/TestScatterView.hpp @@ -773,9 +773,18 @@ TEST(TEST_CATEGORY, scatterview) { int big_n = 100 * 1000; #else -#ifdef KOKKOS_ENABLE_SERIAL +#if defined(KOKKOS_ENABLE_SERIAL) || defined(KOKKOS_ENABLE_OPENMP) +#if defined(KOKKOS_ENABLE_SERIAL) bool is_serial = std::is_same::value; - int big_n = is_serial ? 100 * 1000 : 10000 * 1000; +#else + bool is_serial = false; +#endif +#if defined(KOKKOS_ENABLE_OPENMP) + bool is_openmp = std::is_same::value; +#else + bool is_openmp = false; +#endif + int big_n = is_serial || is_openmp ? 100 * 1000 : 10000 * 1000; #else int big_n = 10000 * 1000; #endif