Skip to content

Commit 9b3a9c2

Browse files
authored
Merge pull request #6417 from abouteiller/bugfix/cart_create_cid
Cart/Graph create would not run the next_cid algorithm
2 parents d6cdbdf + fb17115 commit 9b3a9c2

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)