Skip to content

Commit 52d503c

Browse files
[test_order0.c] Fixed loop stop condition to wait requests
Signed-off-by: Brelle Emmanuel <[email protected]>
1 parent 69b8931 commit 52d503c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

partitioned-communication/test_order0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int main(int argc, char *argv[]) {
7777
MPI_Start(&request0);
7878
MPI_Start(&request1);
7979

80-
while (!flag0 && !flag1) {
80+
while (!flag0 || !flag1) {
8181
MPI_Test(&request0, &flag0, MPI_STATUS_IGNORE);
8282
MPI_Test(&request1, &flag1, MPI_STATUS_IGNORE);
8383
}

0 commit comments

Comments
 (0)