Skip to content

Commit 2f9b9c3

Browse files
authored
Merge pull request #10495 from hppritcha/topic/fix_issue_10449
sessions: initialize instance field for world and self
2 parents 1e4cff2 + bfffe99 commit 2f9b9c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/communicator/comm_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ int ompi_comm_init_mpi3 (void)
225225
sizeof(ompi_mpi_comm_world.comm.c_name));
226226
ompi_mpi_comm_world.comm.c_flags |= OMPI_COMM_NAMEISSET | OMPI_COMM_INTRINSIC |
227227
OMPI_COMM_GLOBAL_INDEX;
228+
ompi_mpi_comm_world.comm.instance = group->grp_instance;
228229

229230
/* get a reference on the attributes subsys */
230231
ompi_attr_get_ref();
@@ -283,6 +284,7 @@ int ompi_comm_init_mpi3 (void)
283284
sizeof(ompi_mpi_comm_self.comm.c_name));
284285
ompi_mpi_comm_self.comm.c_flags |= OMPI_COMM_NAMEISSET | OMPI_COMM_INTRINSIC |
285286
OMPI_COMM_GLOBAL_INDEX;
287+
ompi_mpi_comm_self.comm.instance = group->grp_instance;
286288

287289
/* We can set MPI_COMM_SELF's keyhash to NULL because it has no
288290
predefined attributes. If a user defines an attribute on

0 commit comments

Comments
 (0)