This source file includes following definitions.
- opal_crs_base_register
- opal_crs_base_open
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #include "opal_config.h"
25
26 #include "opal/mca/base/base.h"
27 #include "opal/mca/crs/base/base.h"
28
29 #include "opal/mca/crs/base/static-components.h"
30
31
32
33
34 opal_crs_base_module_t opal_crs = {
35 NULL,
36 NULL,
37 NULL,
38 NULL,
39 NULL,
40 NULL,
41 NULL,
42 NULL
43 };
44
45 opal_crs_base_component_t opal_crs_base_selected_component = {{0}};
46
47 extern bool opal_crs_base_do_not_select;
48 static int opal_crs_base_register(mca_base_register_flag_t flags);
49
50
51 MCA_BASE_FRAMEWORK_DECLARE(opal, crs, "Checkpoint and Restart Service (CRS)",
52 opal_crs_base_register, opal_crs_base_open,
53 opal_crs_base_close, mca_crs_base_static_components, 0);
54
55 static int opal_crs_base_register(mca_base_register_flag_t flags)
56 {
57 int ret;
58
59
60
61
62
63
64
65
66
67
68
69 ret = mca_base_framework_var_register(&opal_crs_base_framework, "do_not_select",
70 "Do not do the selection of the CRS component",
71 MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE |
72 MCA_BASE_VAR_FLAG_INTERNAL, OPAL_INFO_LVL_9,
73 MCA_BASE_VAR_SCOPE_ALL_EQ, &opal_crs_base_do_not_select);
74
75 return (0 > ret) ? ret : OPAL_SUCCESS;
76 }
77
78
79
80
81
82 int opal_crs_base_open(mca_base_open_flag_t flags)
83 {
84 if(!opal_cr_is_enabled) {
85 opal_output_verbose(10, opal_crs_base_framework.framework_output,
86 "crs:open: FT is not enabled, skipping!");
87 return OPAL_SUCCESS;
88 }
89
90 return mca_base_framework_components_open(&opal_crs_base_framework, flags);
91 }