Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions oshmem/runtime/oshmem_shmem_finalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include "oshmem/shmem/shmem_lock.h"
#include "oshmem/runtime/oshmem_shmem_preconnect.h"

extern int oshmem_shmem_globalexit_status;
extern int oshmem_shmem_inglobalexit;

static int _shmem_finalize(void);

Expand All @@ -85,7 +85,7 @@ int oshmem_shmem_finalize(void)
if ((OSHMEM_SUCCESS == ret) &&
(state >= OMPI_MPI_STATE_INIT_COMPLETED &&
state < OMPI_MPI_STATE_FINALIZE_PAST_COMM_SELF_DESTRUCT) &&
oshmem_shmem_globalexit_status == 0) {
(oshmem_shmem_inglobalexit == 0)) {
PMPI_Comm_free(&oshmem_comm_world);
ret = ompi_mpi_finalize();
}
Expand Down