Skip to content

Commit

Permalink
fence and print [debug].
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalgaudel committed Jan 16, 2024
1 parent 3b5d6b5 commit 8d262ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/einsum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,14 @@ BOOST_AUTO_TEST_CASE(ij_mn_eq_ijk_mo_times_ijk_no) {
auto out = einsum(lhs("i,j,k;m,o"), rhs("i,j,k;n,o"), "i,j;m,n");
bool are_equal = ToTArrayFixture::are_equal<ShapeComp::False>(ref, out);

std::cout << "LHS:\n" << lhs << "\nRHS:\n" << rhs << "\n";
world.gop.fence();
std::cout << "ij_mn_eq_ijk_mo_times_ijk_no\n";
std::cout << "LHS:\n"
<< lhs << "\nRHS:\n"
<< rhs << "\nOut:\n"
<< out << "\nRef:\n"
<< ref << std::endl;

// std::cout << "ref:\n" << ref << '\n' << "out:\n" << out << '\n';
BOOST_CHECK(are_equal);
}

Expand Down

0 comments on commit 8d262ad

Please sign in to comment.