Skip to content

Commit

Permalink
MueLu: Set counts for Regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Mar 31, 2024
1 parent 6c485b0 commit 998c264
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/muelu/test/unit_tests/Regression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SC, LO, GO, NO>::Build(A->getRowMap(), 1);
auto B = Xpetra::MultiVectorFactory<SC, LO, GO, NO>::Build(A->getRowMap(), 1);
Expand Down

0 comments on commit 998c264

Please sign in to comment.