From 9fe1afe642f86e250ab7a9fe7f165bc0c686c7f6 Mon Sep 17 00:00:00 2001 From: Edgar Gabriel Date: Mon, 27 Jan 2025 11:30:51 -0600 Subject: [PATCH] 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 --- ompi/communicator/comm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/communicator/comm.c b/ompi/communicator/comm.c index 68fe13ab0bb..bf0c3b8cf30 100644 --- a/ompi/communicator/comm.c +++ b/ompi/communicator/comm.c @@ -1796,6 +1796,7 @@ int ompi_intercomm_create_from_groups (ompi_group_t *local_group, int local_lead } leader_group = ompi_group_allocate_plist_w_procs (NULL, leader_procs, 2); + leader_group->grp_instance = local_group->grp_instance; ompi_set_group_rank (leader_group, my_proc); if (OPAL_UNLIKELY(NULL == leader_group)) { free(leader_procs);