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.
Этот коммит содержится в:
родитель
63d8feb31c
Коммит
9c7b6a4352
@ -315,6 +315,8 @@ ompi_osc_sm_test(struct ompi_win_t *win,
|
||||
OBJ_RELEASE(module->post_group);
|
||||
module->post_group = NULL;
|
||||
*flag = 1;
|
||||
} else {
|
||||
*flag = 0;
|
||||
}
|
||||
|
||||
OPAL_THREAD_UNLOCK(&module->lock);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user