Skip to content

Commit

Permalink
Print worker thread index
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 5, 2024
1 parent 61c8dd4 commit e506332
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/unit/multiplication/test_multiplication_hermitian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ void testHermitianMultiplication(const blas::Side side, const blas::Uplo uplo, c
}

// SCOPED_TRACE cannot yield.
// mat_ch.waitLocalTiles();
// SCOPED_TRACE(::testing::Message() << "m " << m << "n " << n << ", mb " << mb << ", nb " << nb);
mat_ch.waitLocalTiles();
SCOPED_TRACE(::testing::Message() << "m " << m << "n " << n << ", mb " << mb << ", nb " << nb);
auto t_before = pika::get_worker_thread_num();
CHECK_MATRIX_NEAR(res_c, mat_ch, 10 * (m + 1) * TypeUtilities<T>::error,
10 * (m + 1) * TypeUtilities<T>::error);
auto t_after = pika::get_worker_thread_num();
if (t_before != t_after) {
std::cerr << "worker thread index changed from " << t_before << " to " << t_after << std::endl;
}
else {
std::cerr << "worker thread index is still " << t_before << std::endl;
}
}

template <class T, Backend B, Device D>
Expand Down

0 comments on commit e506332

Please sign in to comment.