Skip to content

Commit 3715379

Browse files
committed
Continuation tests: test for delayed start
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 01c71e9 commit 3715379

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/continuations/continutions.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ int main(int argc, char *argv[])
7070
MPI_Wait(&cont_req, MPI_STATUS_IGNORE);
7171
assert(cb_cnt == 1);
7272

73-
MPI_Start(&cont_req);
74-
7573
/**
7674
* One send, one recv, two continuations
7775
*/
@@ -82,6 +80,9 @@ int main(int argc, char *argv[])
8280
MPI_Isend(&val, 1, MPI_INT, rank, 1001, MPI_COMM_WORLD, &reqs[1]);
8381
MPIX_Continue(&reqs[1], &complete_cnt_cb, &cb_cnt, 0, MPI_STATUS_IGNORE, cont_req);
8482

83+
/* deferred start */
84+
MPI_Start(&cont_req);
85+
8586
MPI_Wait(&cont_req, MPI_STATUS_IGNORE);
8687
assert(reqs[0] == MPI_REQUEST_NULL && reqs[1] == MPI_REQUEST_NULL);
8788
assert(cb_cnt == 2);

0 commit comments

Comments
 (0)