This source file includes following definitions.
- hnp_component_open
- hnp_component_query
- hnp_component_close
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
30
31 #include "opal/util/argv.h"
32
33 #include "orte_config.h"
34 #include "orte/constants.h"
35
36 #include "orte/util/proc_info.h"
37 #include "orte/util/show_help.h"
38
39 #include "orte/mca/ess/ess.h"
40 #include "orte/mca/ess/hnp/ess_hnp.h"
41 #include "orte/runtime/orte_globals.h"
42
43 extern orte_ess_base_module_t orte_ess_hnp_module;
44 static int hnp_component_open(void);
45 static int hnp_component_close(void);
46 static int hnp_component_query(mca_base_module_t **module, int *priority);
47
48
49
50
51
52 orte_ess_base_component_t mca_ess_hnp_component = {
53 .base_version = {
54 ORTE_ESS_BASE_VERSION_3_0_0,
55
56
57 .mca_component_name = "hnp",
58 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
59 ORTE_RELEASE_VERSION),
60
61
62 .mca_open_component = hnp_component_open,
63 .mca_close_component = hnp_component_close,
64 .mca_query_component = hnp_component_query
65 },
66 .base_data = {
67
68 MCA_BASE_METADATA_PARAM_CHECKPOINT
69 }
70 };
71
72 static int hnp_component_open(void)
73 {
74
75 return ORTE_SUCCESS;
76 }
77
78
79 static int hnp_component_query(mca_base_module_t **module, int *priority)
80 {
81
82
83
84
85 if (ORTE_PROC_IS_HNP) {
86 *priority = 100;
87 *module = (mca_base_module_t *)&orte_ess_hnp_module;
88 return ORTE_SUCCESS;
89 }
90
91
92 *priority = -1;
93 *module = NULL;
94 return ORTE_ERROR;
95 }
96
97
98 static int hnp_component_close(void)
99 {
100 return ORTE_SUCCESS;
101 }