Skip to content

Commit

Permalink
OSC-RDMA: PSCW fix
Browse files Browse the repository at this point in the history
related to open-mpi#9540

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
  • Loading branch information
hppritcha committed Oct 19, 2021
1 parent 52d1096 commit e20108c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ompi/mca/osc/rdma/osc_rdma_active_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ int ompi_osc_rdma_complete_atomic (ompi_win_t *win)
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "complete: %s", win->w_name);

OPAL_THREAD_LOCK(&module->lock);
if (0 == sync->num_peers) {
OPAL_THREAD_UNLOCK(&module->lock);
return OMPI_SUCCESS;
}

if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
OPAL_THREAD_UNLOCK(&module->lock);
return OMPI_ERR_RMA_SYNC;
Expand Down

0 comments on commit e20108c

Please sign in to comment.