20 #ifndef ORTE_SNAPC_BASE_H
21 #define ORTE_SNAPC_BASE_H
23 #include "orte_config.h"
43 ORTE_DECLSPEC
int orte_snapc_base_open(
void);
45 #if !ORTE_DISABLE_FULL_SUPPORT
50 typedef uint8_t orte_snapc_cmd_flag_t;
51 #define ORTE_SNAPC_CMD OPAL_UINT8
52 #define ORTE_SNAPC_GLOBAL_INIT_CMD 1
53 #define ORTE_SNAPC_GLOBAL_TERM_CMD 2
54 #define ORTE_SNAPC_GLOBAL_UPDATE_CMD 3
55 #define ORTE_SNAPC_LOCAL_UPDATE_CMD 4
56 #define ORTE_SNAPC_LOCAL_FINISH_CMD 5
63 typedef uint32_t orte_snapc_coord_type_t;
64 #define ORTE_SNAPC_UNASSIGN_TYPE 0
65 #define ORTE_SNAPC_GLOBAL_COORD_TYPE 1
66 #define ORTE_SNAPC_LOCAL_COORD_TYPE 2
67 #define ORTE_SNAPC_APP_COORD_TYPE 4
68 ORTE_DECLSPEC
extern orte_snapc_coord_type_t orte_snapc_coord_type;
70 #define ORTE_SNAPC_COORD_NAME_PRINT(ct) ( (ct == (ORTE_SNAPC_GLOBAL_COORD_TYPE | ORTE_SNAPC_LOCAL_COORD_TYPE) ) ? "Global-Local" : \
71 (ct == ORTE_SNAPC_GLOBAL_COORD_TYPE) ? "Global" : \
72 (ct == ORTE_SNAPC_LOCAL_COORD_TYPE) ? "Local" : \
73 (ct == ORTE_SNAPC_APP_COORD_TYPE) ? "App" : \
93 ORTE_DECLSPEC
int orte_snapc_base_select(
bool seed,
bool app);
103 ORTE_DECLSPEC
int orte_snapc_base_close(
void);
116 ORTE_DECLSPEC
int orte_snapc_base_none_open(
void);
117 ORTE_DECLSPEC
int orte_snapc_base_none_close(
void);
118 ORTE_DECLSPEC
int orte_snapc_base_none_query(
mca_base_module_t **module,
int *priority);
120 ORTE_DECLSPEC
int orte_snapc_base_module_init(
bool seed,
bool app);
121 ORTE_DECLSPEC
int orte_snapc_base_module_finalize(
void);
122 ORTE_DECLSPEC
int orte_snapc_base_none_setup_job(
orte_jobid_t jobid);
123 ORTE_DECLSPEC
int orte_snapc_base_none_release_job(
orte_jobid_t jobid);
124 ORTE_DECLSPEC
int orte_snapc_base_none_ft_event(
int state);
128 ORTE_DECLSPEC
extern int orte_snapc_base_output;
129 ORTE_DECLSPEC
extern opal_list_t orte_snapc_base_components_available;
136 ORTE_DECLSPEC
extern bool orte_snapc_base_store_only_one_seq;
137 ORTE_DECLSPEC
extern size_t orte_snapc_base_snapshot_seq_number;
138 ORTE_DECLSPEC
extern bool orte_snapc_base_has_recovered;
143 ORTE_DECLSPEC
void orte_snapc_ckpt_state_notify(
int state);
144 ORTE_DECLSPEC
int orte_snapc_ckpt_state_str(
char ** state_str,
int state);
155 orte_sstore_base_handle_t handle,
158 ORTE_DECLSPEC
int orte_snapc_base_unpack_options(
opal_buffer_t* buffer,
160 ORTE_DECLSPEC
int orte_snapc_base_pack_options(
opal_buffer_t* buffer,
Common type for all MCA modules.
Definition: mca.h:100
uint32_t orte_jobid_t
Set the allowed range for ids in each space.
Definition: types.h:76
Structure for SNAPC components.
Definition: snapc.h:351
Definition of the global snapshot.
Definition: snapc.h:167
Structure for SNAPC modules.
Definition: snapc.h:370
Definition of a orte local snapshot.
Definition: snapc.h:144
Definition: opal_list.h:147
Structure for holding a buffer to be used with the RML or OOB subsystems.
Definition: dss_types.h:159
Snapshot Coordination (SNAPC) Interface.