From 998c264f9a3099d36097e5193d45e60297226989 Mon Sep 17 00:00:00 2001 From: Christian Glusa Date: Sat, 30 Mar 2024 19:30:47 -0600 Subject: [PATCH] MueLu: Set counts for Regression test --- packages/muelu/test/unit_tests/Regression.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/muelu/test/unit_tests/Regression.cpp b/packages/muelu/test/unit_tests/Regression.cpp index 3bb6e65b2a4f..ee473dd6e0fe 100644 --- a/packages/muelu/test/unit_tests/Regression.cpp +++ b/packages/muelu/test/unit_tests/Regression.cpp @@ -105,9 +105,16 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(Regression, H2D, Scalar, LocalOrdinal, GlobalO if (Node::is_cpu) { TEST_EQUALITY(Tpetra::Details::DeepCopyCounter::get_count_different_space(), 0); - } else { + } +#ifdef KOKKOS_HAS_SHARED_SPACE + else { + TEST_EQUALITY(Tpetra::Details::DeepCopyCounter::get_count_different_space(), 24); + } +#else + else { TEST_EQUALITY(Tpetra::Details::DeepCopyCounter::get_count_different_space(), 37); } +#endif auto X = Xpetra::MultiVectorFactory::Build(A->getRowMap(), 1); auto B = Xpetra::MultiVectorFactory::Build(A->getRowMap(), 1);