2004-01-12 00:26:55 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
* These symbols are in a file by themselves to provide nice linker
|
|
|
|
* semantics. Since linkers generally pull in symbols by object
|
|
|
|
* files, keeping these symbols as the only symbols in this file
|
2004-06-07 19:33:53 +04:00
|
|
|
* prevents utility programs such as "ompi_info" from having to import
|
2004-08-02 04:24:22 +04:00
|
|
|
* entire components just to query their version and parameters.
|
2004-01-12 00:26:55 +03:00
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-02-15 00:26:30 +03:00
|
|
|
#include "coll_basic.h"
|
2004-08-10 08:10:08 +04:00
|
|
|
#include "mca/coll/basic/coll-basic-version.h"
|
2004-01-12 00:26:55 +03:00
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/coll/coll.h"
|
2004-01-12 00:26:55 +03:00
|
|
|
#include "coll_basic.h"
|
|
|
|
|
|
|
|
/*
|
2004-08-02 04:24:22 +04:00
|
|
|
* Public string showing the coll ompi_basic component version number
|
2004-01-12 00:26:55 +03:00
|
|
|
*/
|
2004-08-02 04:24:22 +04:00
|
|
|
const char *mca_coll_basic_component_version_string =
|
2004-10-21 20:27:17 +04:00
|
|
|
"Open MPI basic collective MCA component version " MCA_coll_basic_VERSION;
|
2004-01-12 00:26:55 +03:00
|
|
|
|
2004-10-12 16:38:56 +04:00
|
|
|
/*
|
|
|
|
* Global variable
|
|
|
|
*/
|
|
|
|
int mca_coll_basic_priority_param = -1;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local function
|
|
|
|
*/
|
|
|
|
static int basic_open(void);
|
|
|
|
|
2004-01-12 00:26:55 +03:00
|
|
|
/*
|
|
|
|
* Instantiate the public struct with all of our public information
|
|
|
|
* and pointers to our public functions in it
|
|
|
|
*/
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
const mca_coll_base_component_1_0_0_t mca_coll_basic_component = {
|
2004-01-12 00:26:55 +03:00
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
/* First, the mca_component_t struct containing meta information
|
|
|
|
about the component itself */
|
2004-01-12 00:26:55 +03:00
|
|
|
|
|
|
|
{
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Indicate that we are a coll v1.0.0 component (which also implies a
|
2004-01-12 00:26:55 +03:00
|
|
|
specific MCA version) */
|
|
|
|
|
|
|
|
MCA_COLL_BASE_VERSION_1_0_0,
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Component name and version */
|
2004-01-12 00:26:55 +03:00
|
|
|
|
|
|
|
"basic",
|
2004-02-15 00:26:30 +03:00
|
|
|
MCA_coll_basic_MAJOR_VERSION,
|
|
|
|
MCA_coll_basic_MINOR_VERSION,
|
|
|
|
MCA_coll_basic_RELEASE_VERSION,
|
2004-01-12 00:26:55 +03:00
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Component open and close functions */
|
2004-01-12 00:26:55 +03:00
|
|
|
|
2004-10-12 16:38:56 +04:00
|
|
|
basic_open,
|
2004-01-12 00:26:55 +03:00
|
|
|
NULL
|
|
|
|
},
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Next the MCA v1.0.0 component meta data */
|
2004-01-12 00:26:55 +03:00
|
|
|
|
|
|
|
{
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Whether the component is checkpointable or not */
|
2004-01-12 00:26:55 +03:00
|
|
|
|
|
|
|
true
|
|
|
|
},
|
|
|
|
|
|
|
|
/* Initialization / querying functions */
|
|
|
|
|
2004-01-30 06:53:51 +03:00
|
|
|
mca_coll_basic_init_query,
|
2004-06-29 04:02:25 +04:00
|
|
|
mca_coll_basic_comm_query,
|
|
|
|
NULL
|
2004-01-12 00:26:55 +03:00
|
|
|
};
|
2004-10-12 16:38:56 +04:00
|
|
|
|
|
|
|
|
|
|
|
static int basic_open(void)
|
|
|
|
{
|
|
|
|
/* Use a low priority, but allow other components to be lower */
|
|
|
|
|
|
|
|
mca_coll_basic_priority_param =
|
|
|
|
mca_base_param_register_int("coll", "basic", "priority", NULL, 10);
|
|
|
|
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|