This source file includes following definitions.
- orte_iof_hnp_open
- orte_iof_hnp_close
- orte_iof_hnp_query
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 "orte_config.h"
25
26 #include "opal/mca/base/base.h"
27 #include "opal/util/output.h"
28 #include "opal/mca/event/event.h"
29
30 #include "orte/util/proc_info.h"
31
32 #include "orte/mca/iof/base/base.h"
33 #include "iof_hnp.h"
34
35
36
37
38 static int orte_iof_hnp_open(void);
39 static int orte_iof_hnp_close(void);
40 static int orte_iof_hnp_query(mca_base_module_t **module, int *priority);
41
42
43
44
45 const char *mca_iof_hnp_component_version_string =
46 "Open MPI hnp iof MCA component version " ORTE_VERSION;
47
48 orte_iof_hnp_component_t mca_iof_hnp_component = {
49 {
50
51
52
53 .iof_version = {
54 ORTE_IOF_BASE_VERSION_2_0_0,
55
56 .mca_component_name = "hnp",
57 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
58 ORTE_RELEASE_VERSION),
59
60
61 .mca_open_component = orte_iof_hnp_open,
62 .mca_close_component = orte_iof_hnp_close,
63 .mca_query_component = orte_iof_hnp_query,
64 },
65 .iof_data = {
66
67 MCA_BASE_METADATA_PARAM_CHECKPOINT
68 },
69 }
70 };
71
72
73
74
75 static int orte_iof_hnp_open(void)
76 {
77
78 return ORTE_SUCCESS;
79 }
80
81
82 static int orte_iof_hnp_close(void)
83 {
84 return ORTE_SUCCESS;
85 }
86
87
88
89
90
91 static int orte_iof_hnp_query(mca_base_module_t **module, int *priority)
92 {
93
94 if (!ORTE_PROC_IS_HNP && !ORTE_PROC_IS_MASTER) {
95 *priority = -1;
96 *module = NULL;
97 return ORTE_ERROR;
98 }
99
100 *priority = 100;
101 *module = (mca_base_module_t *) &orte_iof_hnp_module;
102
103 return ORTE_SUCCESS;
104 }