Skip to content

Commit

Permalink
Make sure a PSCW epoch is active on MPI_Win_complete calls when using…
Browse files Browse the repository at this point in the history
… rdma framework for osc.

Signed-off-by: Cody Mann <cody.mann@cornelisnetworks.com>
  • Loading branch information
codymann-cornelisnetworks committed Sep 4, 2024
1 parent 1afb524 commit b300eb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ompi/mca/osc/rdma/osc_rdma_active_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,14 @@ 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) {
if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
OPAL_THREAD_UNLOCK(&module->lock);
return OMPI_SUCCESS;
return OMPI_ERR_RMA_SYNC;
}

if (OMPI_OSC_RDMA_SYNC_TYPE_PSCW != sync->type) {
if (0 == sync->num_peers) {
OPAL_THREAD_UNLOCK(&module->lock);
return OMPI_ERR_RMA_SYNC;
return OMPI_SUCCESS;
}

/* phase 1 cleanup sync object */
Expand Down

0 comments on commit b300eb9

Please sign in to comment.