2004-02-01 00:43:26 +03:00
|
|
|
/*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 23:09:25 +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.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-02-01 00:43:26 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
#include "ompi_config.h"
|
2004-11-05 10:52:30 +03:00
|
|
|
#include "include/constants.h"
|
2004-02-01 00:43:26 +03:00
|
|
|
#include "mca/mca.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/base.h"
|
2004-08-18 19:51:40 +04:00
|
|
|
#include "mca/base/mca_base_param.h"
|
2004-08-05 03:42:51 +04:00
|
|
|
#include "mca/oob/oob.h"
|
2004-02-01 00:43:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following file was created by configure. It contains extern
|
|
|
|
* statements and the definition of an array of pointers to each
|
2004-08-02 04:24:22 +04:00
|
|
|
* component's public mca_base_component_t struct.
|
2004-02-01 00:43:26 +03:00
|
|
|
*/
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
#include "mca/oob/base/static-components.h"
|
2004-02-01 00:43:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
2004-08-03 01:24:00 +04:00
|
|
|
mca_oob_t mca_oob;
|
2004-02-01 00:43:26 +03:00
|
|
|
int mca_oob_base_output = -1;
|
2004-08-18 19:51:40 +04:00
|
|
|
char* mca_oob_base_include = NULL;
|
|
|
|
char* mca_oob_base_exclude = NULL;
|
2005-07-03 20:22:16 +04:00
|
|
|
opal_list_t mca_oob_base_components;
|
|
|
|
opal_list_t mca_oob_base_modules;
|
2004-02-01 00:43:26 +03:00
|
|
|
|
|
|
|
/**
|
2004-08-02 04:24:22 +04:00
|
|
|
* Function for finding and opening either all MCA components, or the one
|
2004-02-01 00:43:26 +03:00
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int mca_oob_base_open(void)
|
|
|
|
{
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Open up all available components */
|
2004-02-01 00:43:26 +03:00
|
|
|
|
2005-07-03 20:22:16 +04:00
|
|
|
OBJ_CONSTRUCT(&mca_oob_base_components, opal_list_t);
|
|
|
|
OBJ_CONSTRUCT(&mca_oob_base_modules, opal_list_t);
|
2004-08-03 01:24:00 +04:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (OMPI_SUCCESS !=
|
2004-08-02 04:24:22 +04:00
|
|
|
mca_base_components_open("oob", 0, mca_oob_base_static_components,
|
2005-04-13 07:19:48 +04:00
|
|
|
&mca_oob_base_components, true)) {
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_ERROR;
|
2004-02-01 00:43:26 +03:00
|
|
|
}
|
|
|
|
|
2004-08-18 19:51:40 +04:00
|
|
|
/* register parameters */
|
|
|
|
mca_base_param_lookup_string(
|
|
|
|
mca_base_param_register_string("oob","base","include",NULL,NULL), &mca_oob_base_include);
|
|
|
|
mca_base_param_lookup_string(
|
2004-08-28 05:15:19 +04:00
|
|
|
mca_base_param_register_string("oob","base","exclude",NULL,NULL), &mca_oob_base_exclude);
|
2004-08-02 04:24:22 +04:00
|
|
|
|
2004-08-18 19:51:40 +04:00
|
|
|
/* All done */
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_SUCCESS;
|
2004-02-01 00:43:26 +03:00
|
|
|
}
|
2004-07-01 18:49:54 +04:00
|
|
|
|