From d6e8d51d5f31283257062858186d6c6caf96d8ee 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 228abae7ab..f0ad19e4f8 100644 --- a/ompi/communicator/comm.c +++ b/ompi/communicator/comm.c @@ -1884,6 +1884,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);