2004-01-12 00:31:52 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-12 00:31:52 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2004-06-29 04:02:25 +04:00
|
|
|
#include "util/output.h"
|
2004-01-30 06:53:03 +03:00
|
|
|
#include "mca/mca.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/base.h"
|
2004-06-29 04:02:25 +04:00
|
|
|
#include "mca/base/mca_base_param.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/coll/coll.h"
|
|
|
|
#include "mca/coll/base/base.h"
|
2004-01-12 00:31:52 +03:00
|
|
|
|
|
|
|
|
2004-01-30 06:53:03 +03:00
|
|
|
/*
|
|
|
|
* The following file was created by configure. It contains extern
|
|
|
|
* statements and the definition of an array of pointers to each
|
2004-06-29 04:02:25 +04:00
|
|
|
* component's public mca_base_module_t struct.
|
2004-01-30 06:53:03 +03:00
|
|
|
*/
|
|
|
|
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/coll/base/static-modules.h"
|
2004-01-30 06:53:03 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2004-06-29 04:02:25 +04:00
|
|
|
* Global variables; most of which are loaded by back-ends of MCA
|
|
|
|
* variables
|
2004-01-30 06:53:03 +03:00
|
|
|
*/
|
2004-06-29 04:02:25 +04:00
|
|
|
int mca_coll_base_param = -1;
|
2004-01-30 06:53:03 +03:00
|
|
|
int mca_coll_base_output = -1;
|
2004-06-29 04:02:25 +04:00
|
|
|
|
2004-01-30 06:53:03 +03:00
|
|
|
int mca_coll_base_crossover = 4;
|
|
|
|
int mca_coll_base_associative = 1;
|
|
|
|
int mca_coll_base_reduce_crossover = 4;
|
2004-05-08 03:04:59 +04:00
|
|
|
int mca_coll_base_bcast_collmaxlin = 4;
|
|
|
|
int mca_coll_base_bcast_collmaxdim = 64;
|
2004-06-29 04:02:25 +04:00
|
|
|
|
|
|
|
bool mca_coll_base_components_opened_valid = false;
|
|
|
|
ompi_list_t mca_coll_base_components_opened;
|
2004-01-30 06:53:03 +03:00
|
|
|
|
|
|
|
|
2004-06-29 04:02:25 +04:00
|
|
|
/*
|
|
|
|
* Function for finding and opening either all MCA components, or the one
|
2004-01-30 06:53:03 +03:00
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int mca_coll_base_open(void)
|
2004-01-12 00:31:52 +03:00
|
|
|
{
|
2004-06-29 04:02:25 +04:00
|
|
|
/* Open an output stream for this framework */
|
|
|
|
|
|
|
|
mca_coll_base_output = ompi_output_open(NULL);
|
|
|
|
|
|
|
|
/* Open up all available components */
|
2004-01-30 06:53:03 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (OMPI_SUCCESS !=
|
2004-06-29 04:02:25 +04:00
|
|
|
mca_base_modules_open("coll", mca_coll_base_output,
|
|
|
|
mca_coll_base_static_modules,
|
|
|
|
&mca_coll_base_components_opened)) {
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_ERROR;
|
2004-01-30 06:53:03 +03:00
|
|
|
}
|
2004-06-29 04:02:25 +04:00
|
|
|
mca_coll_base_components_opened_valid = true;
|
|
|
|
|
|
|
|
/* Find the index of the MCA "coll" param for selection */
|
|
|
|
|
|
|
|
mca_coll_base_param = mca_base_param_find("coll", "base", NULL);
|
2004-01-30 06:53:03 +03:00
|
|
|
|
|
|
|
/* All done */
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_SUCCESS;
|
2004-01-12 00:31:52 +03:00
|
|
|
}
|