Skip to content

Commit 55e36d7

Browse files
authored
Merge pull request #412 from sourceryinstitute/bugfix-event_wait
Enforce MPI progress during event_wait Fixes #411
2 parents 7dbcf92 + 4fb814b commit 55e36d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mpi/mpi_caf.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -4482,8 +4482,10 @@ PREFIX (event_wait) (caf_token_t token, size_t index,
44824482
count = var[index];
44834483
/* if(count >= until_count) */
44844484
/* break; */
4485-
usleep(5*i);
4485+
usleep(10*i);
44864486
i++;
4487+
/* Needed to enforce MPI progress */
4488+
CAF_Win_unlock (image, *p);
44874489
}
44884490

44894491
newval = -until_count;

0 commit comments

Comments
 (0)