From 207e99f9c1ebb875f2aa018b715b2b1cc2d8daa4 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Mon, 18 Dec 2023 11:08:30 -0700 Subject: [PATCH] debug prints --- unit_tests/test_initfinalize.cpp | 2 ++ unit_tests/test_isendrecv.cpp | 6 ++++-- unit_tests/test_sendrecv.cpp | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/unit_tests/test_initfinalize.cpp b/unit_tests/test_initfinalize.cpp index 70c26ec7..9d05b299 100644 --- a/unit_tests/test_initfinalize.cpp +++ b/unit_tests/test_initfinalize.cpp @@ -1,6 +1,8 @@ #include TEST(InitFinalize, nothing) { + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; ASSERT_TRUE(true); + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; } diff --git a/unit_tests/test_isendrecv.cpp b/unit_tests/test_isendrecv.cpp index 904181e2..dbff6ecd 100644 --- a/unit_tests/test_isendrecv.cpp +++ b/unit_tests/test_isendrecv.cpp @@ -12,7 +12,7 @@ using ScalarTypes = ::testing::Types, Kokk TYPED_TEST_SUITE(IsendRecv, ScalarTypes); TYPED_TEST(IsendRecv, 1D_contig) { - + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; Kokkos::View a("a", 1000); int rank; @@ -34,11 +34,12 @@ TYPED_TEST(IsendRecv, 1D_contig) { }, errs); ASSERT_EQ(errs, 0); } + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; } TYPED_TEST(IsendRecv, 1D_noncontig) { - + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; // this is C-style layout, i.e. b(0,0) is next to b(0,1) Kokkos::View b("a", 10, 10); auto a = Kokkos::subview(b, 2, Kokkos::ALL); // take column 2 (non-contiguous) @@ -62,4 +63,5 @@ TYPED_TEST(IsendRecv, 1D_noncontig) { }, errs); ASSERT_EQ(errs, 0); } + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; } \ No newline at end of file diff --git a/unit_tests/test_sendrecv.cpp b/unit_tests/test_sendrecv.cpp index 138f6e7b..0a1e2e82 100644 --- a/unit_tests/test_sendrecv.cpp +++ b/unit_tests/test_sendrecv.cpp @@ -13,7 +13,7 @@ using ScalarTypes = ::testing::Types a("a", 1000); int rank; @@ -34,11 +34,12 @@ TYPED_TEST(SendRecv, 1D_contig) { }, errs); ASSERT_EQ(errs, 0); } + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; } TYPED_TEST(SendRecv, 1D_noncontig) { - + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; // this is C-style layout, i.e. b(0,0) is next to b(0,1) Kokkos::View b("a", 10, 10); auto a = Kokkos::subview(b, 2, Kokkos::ALL); // take column 2 (non-contiguous) @@ -61,4 +62,5 @@ TYPED_TEST(SendRecv, 1D_noncontig) { }, errs); ASSERT_EQ(errs, 0); } + std::cerr << __FILE__ << ":" << __LINE__ << "\n"; } \ No newline at end of file