2004-01-29 02:49:32 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00: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 20:09:25 +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.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-01-29 02:49:32 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2004-10-22 16:06:05 +00:00
|
|
|
#include "ompi_config.h"
|
2004-01-29 02:49:32 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mca/mca.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mca/base/base.h"
|
2004-08-17 16:03:42 +00:00
|
|
|
#include "mca/base/mca_base_param.h"
|
2005-04-13 03:19:48 +00:00
|
|
|
#include "mca/pml/pml.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mca/ptl/ptl.h"
|
|
|
|
#include "mca/ptl/base/base.h"
|
2004-01-29 02:49:32 +00: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 00:24:22 +00:00
|
|
|
* component's public mca_base_component_t struct.
|
2004-01-29 02:49:32 +00:00
|
|
|
*/
|
|
|
|
|
2004-08-02 00:24:22 +00:00
|
|
|
#include "mca/ptl/base/static-components.h"
|
2004-01-29 02:49:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
|
|
|
int mca_ptl_base_output = -1;
|
2004-08-18 15:54:14 +00:00
|
|
|
char* mca_ptl_base_include = NULL;
|
|
|
|
char* mca_ptl_base_exclude = NULL;
|
2004-08-11 18:25:24 +00:00
|
|
|
ompi_list_t mca_ptl_base_components_opened;
|
|
|
|
ompi_list_t mca_ptl_base_modules_initialized;
|
2004-01-29 02:49:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2004-08-02 00:24:22 +00:00
|
|
|
* Function for finding and opening either all MCA components, or the one
|
2004-01-29 02:49:32 +00:00
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int mca_ptl_base_open(void)
|
|
|
|
{
|
2004-08-02 00:24:22 +00:00
|
|
|
/* Open up all available components */
|
2004-01-29 02:49:32 +00:00
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
if (OMPI_SUCCESS !=
|
2004-08-02 00:24:22 +00:00
|
|
|
mca_base_components_open("ptl", 0, mca_ptl_base_static_components,
|
2005-04-13 03:19:48 +00:00
|
|
|
&mca_ptl_base_components_opened, true)) {
|
2004-06-07 15:33:53 +00:00
|
|
|
return OMPI_ERROR;
|
2004-01-29 02:49:32 +00:00
|
|
|
}
|
|
|
|
|
2004-01-30 23:02:39 +00:00
|
|
|
/* Initialize the list so that in mca_ptl_base_close(), we can
|
|
|
|
iterate over it (even if it's empty, as in the case of
|
2004-06-07 15:33:53 +00:00
|
|
|
ompi_info) */
|
2004-01-30 23:02:39 +00:00
|
|
|
|
2004-08-11 18:25:24 +00:00
|
|
|
OBJ_CONSTRUCT(&mca_ptl_base_modules_initialized, ompi_list_t);
|
2004-01-30 23:02:39 +00:00
|
|
|
|
2004-08-17 16:03:42 +00:00
|
|
|
/* register parameters */
|
|
|
|
mca_base_param_lookup_string(
|
|
|
|
mca_base_param_register_string("ptl","base","include",NULL,NULL), &mca_ptl_base_include);
|
|
|
|
mca_base_param_lookup_string(
|
|
|
|
mca_base_param_register_string("ptl","base","exclude",NULL,NULL), &mca_ptl_base_exclude);
|
2004-01-29 02:49:32 +00:00
|
|
|
|
2004-08-17 16:03:42 +00:00
|
|
|
/* All done */
|
2004-06-07 15:33:53 +00:00
|
|
|
return OMPI_SUCCESS;
|
2004-01-29 02:49:32 +00:00
|
|
|
}
|