OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

crs_blcr.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2004-2009 The Trustees of Indiana University.
3 * All rights reserved.
4 * Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
5 * All rights reserved.
6 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
7 * University of Stuttgart. All rights reserved.
8 * Copyright (c) 2004-2005 The Regents of the University of California.
9 * All rights reserved.
10 * $COPYRIGHT$
11 *
12 * Additional copyrights may follow
13 *
14 * $HEADER$
15 */
16
17 /**
18 * @file
19 *
20 * BLCR CRS component
21 *
22 */
23
24 #ifndef MCA_CRS_BLCR_EXPORT_H
25 #define MCA_CRS_BLCR_EXPORT_H
26
27 #include "opal_config.h"
28
29
30 #include "opal/mca/mca.h"
31 #include "opal/mca/crs/crs.h"
32 #include "opal/mca/base/base.h"
33
34 #include <libcr.h>
35
36 BEGIN_C_DECLS
37
38 /*
39 * Local Component structures
40 */
41 struct opal_crs_blcr_component_t {
42 /** Base CRS component */
43 opal_crs_base_component_t super;
44 };
45 typedef struct opal_crs_blcr_component_t opal_crs_blcr_component_t;
46 OPAL_MODULE_DECLSPEC extern opal_crs_blcr_component_t mca_crs_blcr_component;
47
48 int opal_crs_blcr_component_query(mca_base_module_t **module, int *priority);
49
50 extern bool opal_crs_blcr_dev_null;
51
52 /*
53 * Module functions
54 */
55 int opal_crs_blcr_module_init(void);
56 int opal_crs_blcr_module_finalize(void);
57
58 /*
59 * Actual funcationality
60 */
61 int opal_crs_blcr_checkpoint( pid_t pid,
62 opal_crs_base_snapshot_t *snapshot,
63 opal_crs_base_ckpt_options_t *options,
64 opal_crs_state_type_t *state);
65
66 int opal_crs_blcr_restart( opal_crs_base_snapshot_t *snapshot,
67 bool spawn_child,
68 pid_t *child_pid);
69
70 int opal_crs_blcr_disable_checkpoint(void);
71 int opal_crs_blcr_enable_checkpoint(void);
72
73 int opal_crs_blcr_prelaunch(int32_t rank,
74 char *base_snapshot_dir,
75 char **app,
76 char **cwd,
77 char ***argv,
78 char ***env);
79
80 int opal_crs_blcr_reg_thread(void);
81
82 END_C_DECLS
83
84 #endif /* MCA_CRS_BLCR_EXPORT_H */
mca_base_module_2_0_0_t
Common type for all MCA modules.
Definition: mca.h:100
mca.h
Top-level interface for all MCA components.
opal_crs_blcr_component_t::super
opal_crs_base_component_t super
Base CRS component.
Definition: crs_blcr.h:43
opal_crs_blcr_component_t
Definition: crs_blcr.h:41
opal_crs_base_snapshot_1_0_0_t
Structure for Single process snapshot Each component is assumed to have extened this definition in th...
Definition: crs.h:107
opal_crs_base_component_2_0_0_t
Structure for CRS components.
Definition: crs.h:248
opal_crs_base_ckpt_options_1_0_0_t
Definition: crs.h:76
crs.h
Checkpoint and Restart Service (CRS) Interface.
opal_crs_state_type_t
opal_crs_state_type_t
States of the module.
Definition: crs.h:60