From bfffe990ec10790b52384cbba681635258378801 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 21 Jun 2022 13:25:01 -0600 Subject: [PATCH] sessions: initialize instance field for world and self comms. related to #10449 related to #9097 Signed-off-by: Howard Pritchard --- ompi/communicator/comm_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/communicator/comm_init.c b/ompi/communicator/comm_init.c index 359b78bd95b..da26158ee86 100644 --- a/ompi/communicator/comm_init.c +++ b/ompi/communicator/comm_init.c @@ -225,6 +225,7 @@ int ompi_comm_init_mpi3 (void) sizeof(ompi_mpi_comm_world.comm.c_name)); ompi_mpi_comm_world.comm.c_flags |= OMPI_COMM_NAMEISSET | OMPI_COMM_INTRINSIC | OMPI_COMM_GLOBAL_INDEX; + ompi_mpi_comm_world.comm.instance = group->grp_instance; /* get a reference on the attributes subsys */ ompi_attr_get_ref(); @@ -283,6 +284,7 @@ int ompi_comm_init_mpi3 (void) sizeof(ompi_mpi_comm_self.comm.c_name)); ompi_mpi_comm_self.comm.c_flags |= OMPI_COMM_NAMEISSET | OMPI_COMM_INTRINSIC | OMPI_COMM_GLOBAL_INDEX; + ompi_mpi_comm_self.comm.instance = group->grp_instance; /* We can set MPI_COMM_SELF's keyhash to NULL because it has no predefined attributes. If a user defines an attribute on