Skip to content

Commit e8878d0

Browse files
authored
Merge pull request #9602 from hppritcha/topic/issue_9556_v5.0.x
OSC-RDMA: PSCW fix
2 parents bbc863e + 7cb60cd commit e8878d0

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)