Skip to content

Commit fb17115

Browse files
committed
Cart/Graph create would not run the next_cid algorithm and create
disjoint communicator with inconsistent cid. Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu>
1 parent d2f8737 commit fb17115

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/communicator/comm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,10 @@ int ompi_comm_enable(ompi_communicator_t *old_comm,
18921892
{
18931893
int ret = OMPI_SUCCESS;
18941894

1895+
/* set the rank information before calling nextcid */
1896+
new_comm->c_local_group->grp_my_rank = new_rank;
1897+
new_comm->c_my_rank = new_rank;
1898+
18951899
/* Determine context id. It is identical to f_2_c_handle */
18961900
ret = ompi_comm_nextcid (new_comm, old_comm, NULL, NULL, NULL, false,
18971901
OMPI_COMM_CID_INTRA);

0 commit comments

Comments
 (0)