This source file includes following definitions.
- orte_iof_tool_open
- orte_iof_tool_close
- orte_iof_tool_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
28 #include "orte/mca/rml/rml.h"
29 #include "orte/mca/rml/rml_types.h"
30 #include "orte/util/proc_info.h"
31 #include "orte/mca/errmgr/errmgr.h"
32 #include "orte/runtime/orte_globals.h"
33
34 #include "iof_tool.h"
35
36
37
38
39 static int orte_iof_tool_open(void);
40 static int orte_iof_tool_close(void);
41 static int orte_iof_tool_query(mca_base_module_t **module, int *priority);
42
43
44
45
46
47 const char *mca_iof_tool_component_version_string =
48 "Open MPI tool iof MCA component version " ORTE_VERSION;
49
50
51 orte_iof_tool_component_t mca_iof_tool_component = {
52 {
53 .iof_version = {
54 ORTE_IOF_BASE_VERSION_2_0_0,
55
56 .mca_component_name = "tool",
57 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
58 ORTE_RELEASE_VERSION),
59
60
61 .mca_open_component = orte_iof_tool_open,
62 .mca_close_component = orte_iof_tool_close,
63 .mca_query_component = orte_iof_tool_query,
64 },
65 .iof_data = {
66
67 MCA_BASE_METADATA_PARAM_CHECKPOINT
68 },
69 }
70 };
71
72
73
74
75 static int orte_iof_tool_open(void)
76 {
77
78 return ORTE_SUCCESS;
79 }
80
81 static int orte_iof_tool_close(void)
82 {
83 return ORTE_SUCCESS;
84 }
85
86
87 static int orte_iof_tool_query(mca_base_module_t **module, int *priority)
88 {
89
90 if (!ORTE_PROC_IS_TOOL) {
91 *module = NULL;
92 *priority = -1;
93 return ORTE_ERROR;
94 }
95
96 *priority = 100;
97 *module = (mca_base_module_t *) &orte_iof_tool_module;
98
99 return ORTE_SUCCESS;
100 }