OpenMPI  0.1.1
op_example_component.c File Reference

This is the "example" component source code. More...

#include "ompi_config.h"
#include "opal/mca/base/mca_base_param.h"
#include "ompi/constants.h"
#include "ompi/op/op.h"
#include "ompi/mca/op/op.h"
#include "ompi/mca/op/base/base.h"
#include "ompi/mca/op/example/op_example.h"

Functions

static int example_component_open (void)
 
static int example_component_close (void)
 
static int example_component_init_query (bool enable_progress_threads, bool enable_mpi_thread_multiple)
 
static struct
ompi_op_base_module_1_0_0_t
example_component_op_query (struct ompi_op_t *op, int *priority)
 
static int example_component_register (void)
 

Variables

ompi_op_example_component_t mca_op_example_component
 Globally exported variable. More...
 

Detailed Description

This is the "example" component source code.

It contains the well-known struct that OMPI will dlsym() (or equivalent) for to find how to access the rest of the component and any modules that are created.

Variable Documentation

ompi_op_example_component_t mca_op_example_component
Initial value:
= {
{
{
OMPI_OP_BASE_VERSION_1_0_0,
"example",
OMPI_MAJOR_VERSION,
OMPI_MINOR_VERSION,
OMPI_RELEASE_VERSION,
example_component_open,
example_component_close,
NULL,
example_component_register
},
{
},
example_component_init_query,
example_component_op_query,
},
}
#define MCA_BASE_METADATA_PARAM_CHECKPOINT
Checkpoint enabled Component.
Definition: mca.h:303

Globally exported variable.

Note that it is a example component (defined above), which has the ompi_op_base_component_t as its first member. Hence, the MCA/op framework will find the data that it expects in the first memory locations, but then the component itself can cache additional information after that that can be used by both the component and modules.

Referenced by ompi_op_example_setup_max().