Skip to content

Commit 32c19b5

Browse files
authored
Merge pull request #9556 from hppritcha/topic/fix_9540_master
OSC-RDMA: PSCW fix
2 parents acc8c76 + e20108c commit 32c19b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ompi/mca/osc/rdma/osc_rdma_active_target.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ int ompi_osc_rdma_complete_atomic (ompi_win_t *win)
456456
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "complete: %s", win->w_name);
457457

458458
OPAL_THREAD_LOCK(&module->lock);
459+
if (0 == sync->num_peers) {
460+
OPAL_THREAD_UNLOCK(&module->lock);
461+
return OMPI_SUCCESS;
462+
}
463+
459464
if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
460465
OPAL_THREAD_UNLOCK(&module->lock);
461466
return OMPI_ERR_RMA_SYNC;

0 commit comments

Comments
 (0)