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"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/orte_constants.h"
|
2005-07-03 23:31:27 +00:00
|
|
|
#include "opal/util/output.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
|
|
|
|
#include "orte/mca/pls/pls.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/mca/pls/base/base.h"
|
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
|
|
|
|
* module's public mca_base_module_t struct.
|
|
|
|
*/
|
|
|
|
|
2005-07-04 18:24:58 +00:00
|
|
|
#include "orte/mca/pls/base/static-components.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
|
|
|
orte_pls_base_t orte_pls_base;
|
|
|
|
|
2006-09-14 21:29:51 +00:00
|
|
|
/*
|
|
|
|
* The default module
|
|
|
|
*/
|
|
|
|
orte_pls_base_module_t orte_pls;
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function for finding and opening either all MCA modules, or the one
|
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int orte_pls_base_open(void)
|
|
|
|
{
|
2006-10-01 22:37:30 +00:00
|
|
|
/* Debugging / verbose output. Always have stream open, with
|
|
|
|
verbose set by the mca open system... */
|
|
|
|
orte_pls_base.pls_output = opal_output_open(NULL);
|
2006-09-29 12:45:50 +00:00
|
|
|
|
|
|
|
/* init selected to be false */
|
|
|
|
orte_pls_base.selected = false;
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2006-11-13 21:51:34 +00:00
|
|
|
/* initialize the condition variables for orted comm */
|
|
|
|
OBJ_CONSTRUCT(&orte_pls_base.orted_cmd_lock, opal_mutex_t);
|
|
|
|
OBJ_CONSTRUCT(&orte_pls_base.orted_cmd_cond, opal_condition_t);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/* Open up all the components that we can find */
|
|
|
|
|
|
|
|
if (ORTE_SUCCESS !=
|
2005-08-15 18:25:35 +00:00
|
|
|
mca_base_components_open("pls", orte_pls_base.pls_output,
|
|
|
|
mca_pls_base_static_components,
|
2006-09-14 21:29:51 +00:00
|
|
|
&orte_pls_base.available_components, true)) {
|
2005-03-14 20:57:21 +00:00
|
|
|
return ORTE_ERROR;
|
|
|
|
}
|
2006-10-01 22:37:30 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/* All done */
|
|
|
|
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|