OpenMPI
0.1.1
|
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... | |
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.
ompi_op_example_component_t mca_op_example_component |
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().