This source file includes following definitions.
- isolated_component_open
- isolated_component_query
- isolated_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
32
33
34 #include "orte_config.h"
35 #include "orte/constants.h"
36
37 #include <stdlib.h>
38 #ifdef HAVE_UNISTD_H
39 #include <unistd.h>
40 #endif
41 #include <ctype.h>
42
43 #include "orte/runtime/orte_globals.h"
44
45 #include "orte/mca/plm/plm.h"
46 #include "orte/mca/plm/isolated/plm_isolated.h"
47
48
49
50
51 const char *mca_plm_isolated_component_version_string =
52 "Open MPI isolated plm MCA component version " ORTE_VERSION;
53
54
55 static int isolated_component_open(void);
56 static int isolated_component_query(mca_base_module_t **module, int *priority);
57 static int isolated_component_close(void);
58
59
60
61
62
63
64 orte_plm_base_component_t mca_plm_isolated_component = {
65 .base_version = {
66 ORTE_PLM_BASE_VERSION_2_0_0,
67
68
69 .mca_component_name = "isolated",
70 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
71 ORTE_RELEASE_VERSION),
72
73
74 .mca_open_component = isolated_component_open,
75 .mca_close_component = isolated_component_close,
76 .mca_query_component = isolated_component_query,
77 },
78 .base_data = {
79
80 MCA_BASE_METADATA_PARAM_CHECKPOINT
81 },
82 };
83
84 static int isolated_component_open(void)
85 {
86 return ORTE_SUCCESS;
87 }
88
89
90 static int isolated_component_query(mca_base_module_t **module, int *priority)
91 {
92
93 if (ORTE_PROC_IS_HNP) {
94 *priority = 0;
95 *module = (mca_base_module_t *) &orte_plm_isolated_module;
96 return ORTE_SUCCESS;
97 }
98 *module = NULL;
99 return ORTE_ERROR;
100 }
101
102
103 static int isolated_component_close(void)
104 {
105 return ORTE_SUCCESS;
106 }
107