This source file includes following definitions.
- reachable_weighted_open
- reachable_weighted_close
- component_register
- reachable_weighted_component_query
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #include "opal_config.h"
24
25 #include "opal/constants.h"
26 #include "opal/util/proc.h"
27 #include "opal/mca/reachable/reachable.h"
28 #include "reachable_weighted.h"
29
30
31
32
33 const char *opal_reachable_weighted_component_version_string =
34 "OPAL weighted reachable MCA component version " OPAL_VERSION;
35
36
37
38
39 static int reachable_weighted_open(void);
40 static int reachable_weighted_close(void);
41 static int reachable_weighted_component_query(mca_base_module_t **module, int *priority);
42 static int component_register(void);
43
44
45
46
47
48
49
50 opal_reachable_weighted_component_t mca_reachable_weighted_component = {
51 {
52
53
54
55
56 .base_version = {
57
58
59
60 OPAL_REACHABLE_BASE_VERSION_2_0_0,
61
62
63
64 .mca_component_name = "weighted",
65 MCA_BASE_MAKE_VERSION(component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION,
66 OPAL_RELEASE_VERSION),
67
68
69
70 .mca_open_component = reachable_weighted_open,
71 .mca_close_component = reachable_weighted_close,
72 .mca_query_component = reachable_weighted_component_query,
73 .mca_register_component_params = component_register,
74 },
75
76 .base_data = {
77
78 MCA_BASE_METADATA_PARAM_CHECKPOINT
79 },
80 }
81 };
82
83 static int reachable_weighted_open(void)
84 {
85
86
87 return OPAL_SUCCESS;
88 }
89
90 static int reachable_weighted_close(void)
91 {
92 return OPAL_SUCCESS;
93 }
94
95 static int component_register(void)
96 {
97 return OPAL_SUCCESS;
98 }
99
100 static int reachable_weighted_component_query(mca_base_module_t **module, int *priority)
101 {
102 *priority = 1;
103 *module = (mca_base_module_t *)&opal_reachable_weighted_module;
104 return OPAL_SUCCESS;
105 }