Skip to content

Commit

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

// 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 16ad0a4

Please sign in to comment.