2005-03-14 20:57:21 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00: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 20:57:21 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-03-14 20:57:21 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
#include "orte/constants.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
#include "opal/mca/base/mca_base_param.h"
|
2005-07-03 23:31:27 +00:00
|
|
|
#include "opal/util/output.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
#include "opal/util/os_path.h"
|
|
|
|
#include "opal/mca/installdirs/installdirs.h"
|
|
|
|
#include "opal/threads/mutex.h"
|
2006-07-10 14:10:21 +00:00
|
|
|
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
#include "orte/util/proc_info.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
|
|
|
|
#include "orte/mca/ras/base/ras_private.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/mca/ras/base/base.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
/* NOTE: the RAS does not require a proxy as only the
|
|
|
|
* HNP can open the framework in orte_init - non-HNP
|
|
|
|
* procs are not allowed to allocate resources
|
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/*
|
|
|
|
* The following file was created by configure. It contains extern
|
|
|
|
* statements and the definition of an array of pointers to each
|
|
|
|
* component's public mca_base_component_t struct.
|
|
|
|
*/
|
|
|
|
|
2005-07-04 18:24:58 +00:00
|
|
|
#include "orte/mca/ras/base/static-components.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
2008-02-28 01:57:57 +00:00
|
|
|
orte_ras_t orte_ras = {
|
|
|
|
orte_ras_base_allocate
|
2006-09-14 21:29:51 +00:00
|
|
|
};
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_ras_base_t orte_ras_base;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function for finding and opening either all MCA components, or the one
|
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int orte_ras_base_open(void)
|
|
|
|
{
|
2008-02-28 01:57:57 +00:00
|
|
|
/* set default flags */
|
|
|
|
orte_ras_base.active_module = NULL;
|
|
|
|
orte_ras_base.allocation_read = false;
|
|
|
|
|
|
|
|
/* Debugging / verbose output. Always have stream open, with
|
|
|
|
verbose set by the mca open system... */
|
2005-07-03 23:31:27 +00:00
|
|
|
orte_ras_base.ras_output = opal_output_open(NULL);
|
2005-09-27 02:54:15 +00:00
|
|
|
|
2007-04-07 18:41:16 +00:00
|
|
|
/* Open up all available components */
|
|
|
|
if (ORTE_SUCCESS !=
|
|
|
|
mca_base_components_open("ras", orte_ras_base.ras_output,
|
|
|
|
mca_ras_base_static_components,
|
|
|
|
&orte_ras_base.ras_opened, true)) {
|
|
|
|
return ORTE_ERROR;
|
|
|
|
}
|
2006-10-19 23:33:51 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/* All done */
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|