Skip to content

Commit

Permalink
Fix MPI hangs due to a break statement (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb authored Jun 3, 2021
1 parent 4c108b1 commit bfb318c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/genmap-rsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ static int check_convergence(struct comm *gc, int max_pass, int max_iter) {
for (i = 0; i < max_levels; i++) {
sint converged = 1;
int val = (int)metric_get_value(i, NFIEDLER);
if (val >= max_pass * max_iter) {
if (val >= max_pass * max_iter)
converged = 0;
break;
}

sint ibfr;
comm_allreduce(gc, gs_int, gs_min, &converged, 1, &ibfr);
Expand Down

0 comments on commit bfb318c

Please sign in to comment.