Skip to content

Commit 3117ff7

Browse files
author
Alessandro Fanfarillo
committed
Enforce MPI progress during event_wait
1 parent 8977be3 commit 3117ff7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mpi/mpi_caf.c

Lines changed: 3 additions & 1 deletion
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)