Skip to content

Commit 688571f

Browse files
committed
Make sure CRs are restarted in tests
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 4a90fd0 commit 688571f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

test/continuations/continutions-mt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ int main(int argc, char *argv[])
7878
/* initialize the continuation request */
7979
MPIX_Continue_init(0, 0, &cont_req, MPI_INFO_NULL);
8080

81+
MPI_Start(&cont_req);
82+
8183
/**
8284
* One send, one recv, one continuation
8385
*/
@@ -90,6 +92,8 @@ int main(int argc, char *argv[])
9092
assert(reqs[0] == MPI_REQUEST_NULL && reqs[1] == MPI_REQUEST_NULL);
9193
assert(cb_cnt == 1);
9294

95+
MPI_Start(&cont_req);
96+
9397
/**
9498
* One send, one recv, two continuations
9599
*/
@@ -120,6 +124,8 @@ int main(int argc, char *argv[])
120124

121125
MPI_Info_free(&info);
122126

127+
MPI_Start(&cont_req);
128+
123129
/**
124130
* One send, one recv, one continuation
125131
*/
@@ -132,6 +138,8 @@ int main(int argc, char *argv[])
132138
assert(reqs[0] == MPI_REQUEST_NULL && reqs[1] == MPI_REQUEST_NULL);
133139
assert(cb_cnt == 1);
134140

141+
MPI_Start(&cont_req);
142+
135143
/**
136144
* One send, one recv, two continuations
137145
*/

test/continuations/continutions.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ int main(int argc, char *argv[])
5454
/* initialize the continuation request */
5555
MPIX_Continue_init(0, 0, &cont_req, MPI_INFO_NULL);
5656

57+
MPI_Start(&cont_req);
58+
5759
/**
5860
* One send, one recv, one continuation
5961
*/
@@ -68,6 +70,8 @@ int main(int argc, char *argv[])
6870
MPI_Wait(&cont_req, MPI_STATUS_IGNORE);
6971
assert(cb_cnt == 1);
7072

73+
MPI_Start(&cont_req);
74+
7175
/**
7276
* One send, one recv, two continuations
7377
*/
@@ -82,6 +86,8 @@ int main(int argc, char *argv[])
8286
assert(reqs[0] == MPI_REQUEST_NULL && reqs[1] == MPI_REQUEST_NULL);
8387
assert(cb_cnt == 2);
8488

89+
MPI_Start(&cont_req);
90+
8591
/**
8692
* One send, one recv, two continuations in two continuation requests
8793
*/
@@ -93,6 +99,8 @@ int main(int argc, char *argv[])
9399
/* initialize a poll-only continuation request */
94100
MPIX_Continue_init(0, 0, &cont_req2, info);
95101

102+
MPI_Start(&cont_req2);
103+
96104
cb_cnt = 0;
97105
MPI_Irecv(&val, 1, MPI_INT, rank, 1001, MPI_COMM_WORLD, &reqs[0]);
98106
MPIX_Continue(&reqs[0], &complete_cnt_cb, &cb_cnt, 0, MPI_STATUS_IGNORE, cont_req);

0 commit comments

Comments
 (0)