Skip to content

Commit

Permalink
Wait for all communicators in miniapp_gen_eigensolver
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed May 28, 2024
1 parent 16ad0a4 commit f5c6fcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miniapp/miniapp_gen_eigensolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ struct GenEigensolverMiniapp {

// wait and barrier for all ranks
eigenvectors.waitLocalTiles();
for (std::size_t i = 0; i < comm_grid.num_pipelines(); ++i) {
sync_wait(comm_grid.full_communicator_pipeline().exclusive());
sync_wait(comm_grid.row_communicator_pipeline().exclusive());
sync_wait(comm_grid.col_communicator_pipeline().exclusive());
}
DLAF_MPI_CHECK_ERROR(MPI_Barrier(world));
double elapsed_time = timeit.elapsed();

Expand Down

0 comments on commit f5c6fcb

Please sign in to comment.