Skip to content

Commit 6341a83

Browse files
committed
sessions: fix comm cleanup during mpi_finalize
without this patch MPI_Session_finalize fails after a call to MPI_Finalize. Related to #10927 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent b79767e commit 6341a83

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
@@ -326,6 +326,8 @@ static int ompi_comm_finalize (void)
326326
OBJ_DESTRUCT( &ompi_mpi_comm_self );
327327
/* Shut down MPI_COMM_WORLD */
328328
OBJ_DESTRUCT( &ompi_mpi_comm_world );
329+
330+
ompi_comm_intrinsic_init = false;
329331
}
330332

331333
/* Shut down the parent communicator, if it exists */

0 commit comments

Comments
 (0)