1
1
openmpi/oshmem/shmem/c/shmem_finalize.c
Ralph Castain 1e2019ce2a Revert "Update to sync with OMPI master and cleanup to build"
This reverts commit cb55c88a8b7817d5891ff06a447ea190b0e77479.
2016-11-22 15:03:20 -08:00

37 строки
707 B
C

/*
* Copyright (c) 2013 Mellanox Technologies, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "oshmem_config.h"
#include "opal/runtime/opal_cr.h"
#include "oshmem/constants.h"
#include "oshmem/include/shmem.h"
#include "oshmem/runtime/runtime.h"
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_finalize = pshmem_finalize
#include "oshmem/shmem/c/profile/defines.h"
#endif
extern int oshmem_shmem_globalexit_status;
void shmem_finalize(void)
{
OPAL_CR_FINALIZE_LIBRARY();
if (oshmem_shmem_globalexit_status != 0)
{
return;
}
oshmem_shmem_finalize();
}