1
1
openmpi/orte/mca/fddp/fddp.h
Ralph Castain c3c642aa0d Add two new frameworks for sensing and predicting faults. This is just the bare-bones plumbing for now - will instantiate soon.
No ess modules reference these frameworks yet, so they are completely inactive.

This commit was SVN r21847.
2009-08-20 04:27:16 +00:00

82 строки
1.8 KiB
C

/*
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
* @file:
*
*/
#ifndef MCA_FDDP_H
#define MCA_FDDP_H
/*
* includes
*/
#include "orte_config.h"
#include "opal/mca/mca.h"
#include "orte/mca/sensor/sensor_types.h"
BEGIN_C_DECLS
/*
* Component functions - all MUST be provided!
*/
/* initialize the selected module */
typedef int (*orte_fddp_base_module_init_fn_t)(void);
/* finalize the selected module */
typedef int (*orte_fddp_base_module_finalize_fn_t)(void);
typedef int (*orte_fddp_base_module_process_fn_t)(orte_sensor_data_t *data,
int num_bins, uint8_t *failure_likelihood);
/*
* Ver 1.0
*/
struct orte_fddp_base_module_1_0_0_t {
orte_fddp_base_module_init_fn_t init;
orte_fddp_base_module_finalize_fn_t finalize;
orte_fddp_base_module_process_fn_t process;
};
typedef struct orte_fddp_base_module_1_0_0_t orte_fddp_base_module_1_0_0_t;
typedef orte_fddp_base_module_1_0_0_t orte_fddp_base_module_t;
/*
* the standard component data structure
*/
struct orte_fddp_base_component_1_0_0_t {
mca_base_component_t base_version;
mca_base_component_data_t base_data;
};
typedef struct orte_fddp_base_component_1_0_0_t orte_fddp_base_component_1_0_0_t;
typedef orte_fddp_base_component_1_0_0_t orte_fddp_base_component_t;
/*
* Macro for use in components that are of type fddp v1.0.0
*/
#define ORTE_FDDP_BASE_VERSION_1_0_0 \
/* fddp v1.0 is chained to MCA v2.0 */ \
MCA_BASE_VERSION_2_0_0, \
/* fddp v1.0 */ \
"fddp", 1, 0, 0
/* Global structure for accessing fddp functions
*/
ORTE_DECLSPEC extern orte_fddp_base_module_t orte_fddp; /* holds selected module's function pointers */
END_C_DECLS
#endif /* MCA_FDDP_H */