Skip to content

Commit

Permalink
sessions: initialize instance field for world and self
Browse files Browse the repository at this point in the history
comms.

related to #10449
related to #9097

Signed-off-by: Howard Pritchard <[email protected]>
  • Loading branch information
hppritcha committed Jun 21, 2022
1 parent 1e4cff2 commit bfffe99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ompi/communicator/comm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bfffe99

Please sign in to comment.