2005-03-14 23:57:21 +03:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-03-14 23:57:21 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2007-01-30 01:01:28 +03:00
|
|
|
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
2005-03-14 23:57:21 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file **/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte/orte_constants.h"
|
2007-01-30 01:01:28 +03:00
|
|
|
#include "orte/runtime/params.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/runtime/opal.h"
|
|
|
|
#include "orte/runtime/runtime.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Leave ORTE.
|
|
|
|
*
|
|
|
|
* @retval ORTE_SUCCESS Upon success.
|
|
|
|
* @retval ORTE_ERROR Upon failure.
|
|
|
|
*
|
|
|
|
* This function performs
|
|
|
|
*/
|
|
|
|
int orte_finalize(void)
|
|
|
|
{
|
2007-01-30 01:01:28 +03:00
|
|
|
if (!orte_initialized) {
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
2005-09-03 01:07:21 +04:00
|
|
|
|
|
|
|
/* We have now entered the finalization stage */
|
|
|
|
orte_universe_info.state = ORTE_UNIVERSE_STATE_FINALIZE;
|
|
|
|
|
2005-05-19 17:33:55 +04:00
|
|
|
/* finalize the orte system */
|
|
|
|
orte_system_finalize();
|
2005-05-18 20:31:03 +04:00
|
|
|
|
2005-05-19 17:33:55 +04:00
|
|
|
/* finalize the opal utilities */
|
|
|
|
opal_finalize();
|
2007-01-30 01:01:28 +03:00
|
|
|
|
|
|
|
orte_initialized = false;
|
2005-03-14 23:57:21 +03:00
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|