Skip to content

Commit e91f38b

Browse files
committed
ompi/communicator: set grp_instance for leader_group
when constructing the leader_group in intercomm_create_from_groups, make sure to set the grp_instance on the leader_group, otherwise the memkind operations trying to acces the info from the instance fails. Signed-off-by: Edgar Gabriel <[email protected]>
1 parent 5a88242 commit e91f38b

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
@@ -1796,6 +1796,7 @@ int ompi_intercomm_create_from_groups (ompi_group_t *local_group, int local_lead
17961796
}
17971797

17981798
leader_group = ompi_group_allocate_plist_w_procs (NULL, leader_procs, 2);
1799+
leader_group->grp_instance = local_group->grp_instance;
17991800
ompi_set_group_rank (leader_group, my_proc);
18001801
if (OPAL_UNLIKELY(NULL == leader_group)) {
18011802
free(leader_procs);

0 commit comments

Comments
 (0)