2004-01-29 05:43:58 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-29 05:43:58 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mca/mca.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/base.h"
|
|
|
|
#include "mca/pml/pml.h"
|
|
|
|
#include "mca/pml/base/base.h"
|
2004-01-29 05:43:58 +03: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.
|
|
|
|
*/
|
|
|
|
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/pml/base/static-modules.h"
|
2004-01-29 05:43:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
|
|
|
int mca_pml_base_output = -1;
|
|
|
|
mca_pml_t mca_pml;
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_list_t mca_pml_base_modules_available;
|
2004-01-29 05:43:58 +03:00
|
|
|
mca_pml_base_module_t mca_pml_base_selected_module;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function for finding and opening either all MCA modules, or the one
|
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int mca_pml_base_open(void)
|
|
|
|
{
|
|
|
|
/* Open up all available modules */
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (OMPI_SUCCESS !=
|
2004-01-29 05:43:58 +03:00
|
|
|
mca_base_modules_open("pml", 0, mca_pml_base_static_modules,
|
|
|
|
&mca_pml_base_modules_available)) {
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_ERROR;
|
2004-01-29 05:43:58 +03:00
|
|
|
}
|
|
|
|
|
2004-01-31 01:56:36 +03:00
|
|
|
/* Set a sentinel in case we don't select any modules (e.g.,
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info) */
|
2004-01-31 01:56:36 +03:00
|
|
|
|
2004-02-01 00:45:32 +03:00
|
|
|
mca_pml_base_selected_module.pmlm_finalize = NULL;
|
2004-01-31 01:56:36 +03:00
|
|
|
|
2004-01-29 05:43:58 +03:00
|
|
|
/* All done */
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_SUCCESS;
|
2004-01-29 05:43:58 +03:00
|
|
|
}
|