2013-10-12 19:15:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Mellanox Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2013-10-12 19:15:36 +00:00
|
|
|
* Additional copyrights may follow
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2013-10-12 19:15:36 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
#include "oshmem_config.h"
|
|
|
|
|
|
|
|
#include "oshmem/include/shmem.h"
|
|
|
|
#include "oshmem/runtime/runtime.h"
|
|
|
|
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
|
|
|
|
2014-10-15 20:30:37 +03:00
|
|
|
extern int oshmem_shmem_inglobalexit;
|
2013-10-12 19:15:36 +00:00
|
|
|
|
|
|
|
void globalexit(int status)
|
|
|
|
{
|
2014-10-15 20:30:37 +03:00
|
|
|
oshmem_shmem_inglobalexit++;
|
2013-10-12 19:15:36 +00:00
|
|
|
|
2013-10-14 09:48:35 +00:00
|
|
|
orte_errmgr.abort(status, NULL);
|
2015-06-23 20:59:57 -07:00
|
|
|
|
2013-10-12 19:15:36 +00:00
|
|
|
oshmem_shmem_aborted = true;
|
|
|
|
exit(status);
|
|
|
|
}
|