1
2
3
4
5
6
7
8
9
10
11
12 #include "opal/runtime/opal_cr.h"
13
14
15
16
17
18
19
20 OMPI_DECLSPEC int OMPI_CR_Checkpoint(char **handle, int *seq, MPI_Info *info);
21
22
23
24
25 OMPI_DECLSPEC int OMPI_CR_Restart(char *handle, int seq, MPI_Info *info);
26
27
28
29
30
31
32
33
34 OMPI_DECLSPEC int OMPI_CR_Migrate(MPI_Comm comm, char *hostname, int rank, MPI_Info *info);
35
36
37
38
39
40 typedef opal_cr_user_inc_callback_event_t OMPI_CR_INC_callback_event_t;
41
42 typedef opal_cr_user_inc_callback_state_t OMPI_CR_INC_callback_state_t;
43
44 typedef int (*OMPI_CR_INC_callback_function)(OMPI_CR_INC_callback_event_t event,
45 OMPI_CR_INC_callback_state_t state);
46
47 OMPI_DECLSPEC int OMPI_CR_INC_register_callback(OMPI_CR_INC_callback_event_t event,
48 OMPI_CR_INC_callback_function function,
49 OMPI_CR_INC_callback_function *prev_function);
50
51
52
53
54
55 typedef int (*OMPI_CR_self_checkpoint_fn)(char **restart_cmd);
56 typedef int (*OMPI_CR_self_restart_fn)(void);
57 typedef int (*OMPI_CR_self_continue_fn)(void);
58
59 OMPI_DECLSPEC int OMPI_CR_self_register_checkpoint_callback(OMPI_CR_self_checkpoint_fn function);
60 OMPI_DECLSPEC int OMPI_CR_self_register_restart_callback(OMPI_CR_self_restart_fn function);
61 OMPI_DECLSPEC int OMPI_CR_self_register_continue_callback(OMPI_CR_self_continue_fn function);
62
63
64
65
66
67
68
69
70
71 OMPI_DECLSPEC int OMPI_CR_Quiesce_start(MPI_Comm comm, MPI_Info *info);
72
73
74
75
76
77 OMPI_DECLSPEC int OMPI_CR_Quiesce_checkpoint(MPI_Comm comm, char **handle, int *seq, MPI_Info *info);
78
79
80
81
82
83 OMPI_DECLSPEC int OMPI_CR_Quiesce_end(MPI_Comm comm, MPI_Info *info);