Skip to content

Commit 049bfb6

Browse files
authored
Merge pull request #5971 from devreal/ompi-rdma-preinit-fixbarrier
Fix regression in RDMA shared memory registration
2 parents c186004 + a193ae2 commit 049bfb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,9 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
653653
}
654654
}
655655

656+
/* barrier to make sure memory is registered */
657+
shared_comm->c_coll->coll_barrier(shared_comm, shared_comm->c_coll->coll_barrier_module);
658+
656659
if (MPI_WIN_FLAVOR_CREATE == module->flavor) {
657660
ret = ompi_osc_rdma_initialize_region (module, base, size);
658661
if (OMPI_SUCCESS != ret) {

0 commit comments

Comments
 (0)