ffd5be6aa1
Note that each of these components will only be selected if specifically requested - otherwise, a "NULL" component will be used. The framework is only opened by the HNP and orteds, though neither is currently coded to save/restore state This commit was SVN r22839.
86 строки
1.9 KiB
C
86 строки
1.9 KiB
C
/*
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
|
|
#include "orte_config.h"
|
|
#include "orte/constants.h"
|
|
|
|
#include "opal/mca/mca.h"
|
|
#include "opal/util/output.h"
|
|
#include "opal/mca/base/base.h"
|
|
#include "opal/dss/dss_types.h"
|
|
|
|
#include "orte/mca/state/base/base.h"
|
|
|
|
|
|
/*
|
|
* The following file was created by configure. It contains extern
|
|
* statements and the definition of an array of pointers to each
|
|
* module's public mca_base_module_t struct.
|
|
*/
|
|
|
|
#include "orte/mca/state/base/static-components.h"
|
|
|
|
opal_list_t orte_state_base_components_available;
|
|
|
|
/* provide "NULL" functions */
|
|
static int init(void);
|
|
static int finalize(void);
|
|
static int save(void *object, opal_data_type_t type);
|
|
static int set_recover_source(orte_process_name_t *name);
|
|
static int recover(void *object, opal_data_type_t type);
|
|
|
|
orte_state_base_module_t orte_state = {
|
|
init,
|
|
finalize,
|
|
save,
|
|
set_recover_source,
|
|
recover
|
|
};
|
|
int orte_state_base_output;
|
|
|
|
int
|
|
orte_state_base_open(void)
|
|
{
|
|
orte_state_base_output = opal_output_open(NULL);
|
|
|
|
OBJ_CONSTRUCT(&orte_state_base_components_available, opal_list_t);
|
|
|
|
/* Open up all available components */
|
|
if (ORTE_SUCCESS !=
|
|
mca_base_components_open("state", orte_state_base_output, mca_state_base_static_components,
|
|
&orte_state_base_components_available,
|
|
true)) {
|
|
return ORTE_ERROR;
|
|
}
|
|
|
|
return ORTE_SUCCESS;
|
|
}
|
|
|
|
static int init(void)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
static int finalize(void)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
static int save(void *object, opal_data_type_t type)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
static int set_recover_source(orte_process_name_t *name)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
static int recover(void *object, opal_data_type_t type)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|