Skip to content

Commit 0eece12

Browse files
authored
Merge pull request #6424 from abouteiller/pr6417to3.1.x
v3.1.x: Cart/Graph create would not run the next_cid algorithm
2 parents df76abe + 7398fc6 commit 0eece12

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
@@ -1887,6 +1887,10 @@ int ompi_comm_enable(ompi_communicator_t *old_comm,
18871887
{
18881888
int ret = OMPI_SUCCESS;
18891889

1890+
/* set the rank information before calling nextcid */
1891+
new_comm->c_local_group->grp_my_rank = new_rank;
1892+
new_comm->c_my_rank = new_rank;
1893+
18901894
/* Determine context id. It is identical to f_2_c_handle */
18911895
ret = ompi_comm_nextcid (new_comm, old_comm, NULL, NULL, NULL, false,
18921896
OMPI_COMM_CID_INTRA);

0 commit comments

Comments
 (0)