Skip to content

Commit

Permalink
Merge pull request #10502 from hppritcha/topic/fix_issue_10499_v5.0.x
Browse files Browse the repository at this point in the history
sessions: initialize instance field for world and self
  • Loading branch information
awlauria authored Jun 23, 2022
2 parents 6b55226 + c7e20fe commit 84a334e
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 84a334e

Please sign in to comment.