From fb17115ba9592b317b9e0fc9277970d5496450ab Mon Sep 17 00:00:00 2001 From: Aurelien Bouteiller Date: Thu, 21 Feb 2019 11:40:22 -0500 Subject: [PATCH] Cart/Graph create would not run the next_cid algorithm and create disjoint communicator with inconsistent cid. Signed-off-by: Aurelien Bouteiller --- ompi/communicator/comm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ompi/communicator/comm.c b/ompi/communicator/comm.c index b0f83e7299..50b19ee98d 100644 --- a/ompi/communicator/comm.c +++ b/ompi/communicator/comm.c @@ -1892,6 +1892,10 @@ int ompi_comm_enable(ompi_communicator_t *old_comm, { int ret = OMPI_SUCCESS; + /* set the rank information before calling nextcid */ + new_comm->c_local_group->grp_my_rank = new_rank; + new_comm->c_my_rank = new_rank; + /* Determine context id. It is identical to f_2_c_handle */ ret = ompi_comm_nextcid (new_comm, old_comm, NULL, NULL, NULL, false, OMPI_COMM_CID_INTRA);