This source file includes following definitions.
- sm_register
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #include "ompi_config.h"
30 #include "sharedfp_sm.h"
31 #include "mpi.h"
32
33
34
35
36 const char *mca_sharedfp_sm_component_version_string =
37 "OMPI/MPI sm SHAREDFP MCA component version " OMPI_VERSION;
38
39
40
41 int mca_sharedfp_sm_priority=30;
42 int mca_sharedfp_sm_verbose=0;
43
44 static int sm_register(void);
45
46
47
48
49
50 mca_sharedfp_base_component_2_0_0_t mca_sharedfp_sm_component = {
51
52
53
54
55 .sharedfpm_version = {
56 MCA_SHAREDFP_BASE_VERSION_2_0_0,
57
58
59 .mca_component_name = "sm",
60 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
61 OMPI_RELEASE_VERSION),
62 .mca_register_component_params = sm_register,
63 },
64 .sharedfpm_data = {
65
66 MCA_BASE_METADATA_PARAM_CHECKPOINT
67 },
68 .sharedfpm_init_query = mca_sharedfp_sm_component_init_query,
69 .sharedfpm_file_query = mca_sharedfp_sm_component_file_query,
70 .sharedfpm_file_unquery =mca_sharedfp_sm_component_file_unquery,
71 };
72
73 static int sm_register(void)
74 {
75 mca_sharedfp_sm_priority = 30;
76 (void) mca_base_component_var_register(&mca_sharedfp_sm_component.sharedfpm_version,
77 "priority", "Priority of the sm sharedfp component",
78 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
79 OPAL_INFO_LVL_9,
80 MCA_BASE_VAR_SCOPE_READONLY, &mca_sharedfp_sm_priority);
81 mca_sharedfp_sm_verbose = 0;
82 (void) mca_base_component_var_register(&mca_sharedfp_sm_component.sharedfpm_version,
83 "verbose", "Verbosity of the sm sharedfp component",
84 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
85 OPAL_INFO_LVL_9,
86 MCA_BASE_VAR_SCOPE_READONLY, &mca_sharedfp_sm_verbose);
87
88 return OMPI_SUCCESS;
89 }