d70e2e8c2b
Remains to be tested to ensure everything came over cleanly, so please continue to withhold commits a little longer This commit was SVN r17632.
57 строки
1.4 KiB
C
57 строки
1.4 KiB
C
/*
|
|
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
/** @file **/
|
|
|
|
#include "orte_config.h"
|
|
#include "orte/constants.h"
|
|
|
|
#include "opal/runtime/opal.h"
|
|
|
|
#include "orte/mca/ess/ess.h"
|
|
#include "orte/mca/ess/base/base.h"
|
|
#include "orte/runtime/orte_globals.h"
|
|
#include "orte/runtime/runtime.h"
|
|
|
|
/**
|
|
* Leave ORTE.
|
|
*
|
|
* @retval ORTE_SUCCESS Upon success.
|
|
* @retval ORTE_ERROR Upon failure.
|
|
*
|
|
* This function performs
|
|
*/
|
|
int orte_finalize(void)
|
|
{
|
|
if (!orte_initialized) {
|
|
return ORTE_SUCCESS;
|
|
}
|
|
|
|
/* call the finalize function for this environment */
|
|
orte_ess.finalize();
|
|
|
|
/* close the ess itself */
|
|
orte_ess_base_close();
|
|
|
|
/* finalize the opal utilities */
|
|
opal_finalize();
|
|
|
|
orte_initialized = false;
|
|
return ORTE_SUCCESS;
|
|
}
|