OpenMPI  0.1.1
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  */
42  /** Base CRS component */
44  };
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,
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 */
Common type for all MCA modules.
Definition: mca.h:100
Top-level interface for all MCA components.
opal_crs_base_component_t super
Base CRS component.
Definition: crs_blcr.h:43
Definition: crs_blcr.h:41
Structure for Single process snapshot Each component is assumed to have extened this definition in th...
Definition: crs.h:107
Structure for CRS components.
Definition: crs.h:248
Checkpoint and Restart Service (CRS) Interface.
opal_crs_state_type_t
States of the module.
Definition: crs.h:60