Skip to content

Commit e06a5cd

Browse files
Make sure a PSCW epoch is active on MPI_Win_complete calls when using rdma framework for osc.
Signed-off-by: Cody Mann <[email protected]>
1 parent 5f00259 commit e06a5cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ompi/mca/osc/rdma/osc_rdma_active_target.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ int ompi_osc_rdma_complete_atomic (ompi_win_t *win)
429429
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "complete: %s", win->w_name);
430430

431431
OPAL_THREAD_LOCK(&module->lock);
432-
if (0 == sync->num_peers) {
432+
if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
433433
OPAL_THREAD_UNLOCK(&module->lock);
434-
return OMPI_SUCCESS;
434+
return OMPI_ERR_RMA_SYNC;
435435
}
436436

437-
if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
437+
if (0 == sync->num_peers) {
438438
OPAL_THREAD_UNLOCK(&module->lock);
439-
return OMPI_ERR_RMA_SYNC;
439+
return OMPI_SUCCESS;
440440
}
441441

442442
/* phase 1 cleanup sync object */

0 commit comments

Comments
 (0)