Skip to content

Commit 5356d64

Browse files
kawashima-fjhjelmn
authored andcommitted
osc/sm: Fix a bug that MPI_WIN_TEST does not update flag to 0.
`MPI_WIN_TEST` must update the `flag` parameter to 0 when not all origin processes called `MPI_WIN_COMPLETE`. But sm OSC doesn't. If the caller initialize the `flag` argument to a non-0 value, the caller will receive the non-0 `flag` value. (cherry picked from commit open-mpi/ompi@9c7b6a4) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 1a8898b commit 5356d64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/mca/osc/sm/osc_sm_active_target.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ ompi_osc_sm_test(struct ompi_win_t *win,
312312
OBJ_RELEASE(module->post_group);
313313
module->post_group = NULL;
314314
*flag = 1;
315+
} else {
316+
*flag = 0;
315317
}
316318

317319
OPAL_THREAD_UNLOCK(&module->lock);

0 commit comments

Comments
 (0)