Skip to content

Commit 9052fda

Browse files
committed
ompi/communicator: set grp_instance for leader_group
in intercomm_create_from_group, we need to set the grp_instance value for the leader_group. This issue was exposed with the new mmemkind code and the mpi4py testsuite. Signed-off-by: Edgar Gabriel <[email protected]>
1 parent bf34381 commit 9052fda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/communicator/comm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,7 @@ int ompi_intercomm_create_from_groups (ompi_group_t *local_group, int local_lead
18021802
ompi_comm_free (&local_comm);
18031803
return OMPI_ERR_OUT_OF_RESOURCE;
18041804
}
1805+
leader_group->grp_instance = local_group->grp_instance;
18051806

18061807
/* create a unique tag for allocating the leader communicator. we can eliminate this step
18071808
* if we take a CID from the newly allocated block belonging to local_comm. this is

0 commit comments

Comments
 (0)