Skip to content

Commit 86961a2

Browse files
authored
Merge pull request #12793 from codymann-cornelisnetworks/cody.mann/rdma-win-complete-no-pscw-epoch-active-fix
Make sure a PSCW epoch is active on MPI_Win_complete calls
2 parents e4b98d7 + e06a5cd commit 86961a2

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)