This source file includes following definitions.
- orte_odls_alps_component_open
- orte_odls_alps_component_query
- orte_odls_alps_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 #include "orte_config.h"
29 #include "orte/constants.h"
30
31 #include <stdlib.h>
32 #ifdef HAVE_UNISTD_H
33 #include <unistd.h>
34 #endif
35 #include <ctype.h>
36 #include <sys/syscall.h>
37
38 #include "orte/mca/mca.h"
39 #include "opal/mca/base/base.h"
40
41 #include "orte/mca/common/alps/common_alps.h"
42 #include "orte/mca/odls/odls.h"
43 #include "orte/mca/odls/base/odls_private.h"
44 #include "orte/mca/odls/alps/odls_alps.h"
45
46
47
48
49
50
51 orte_odls_base_component_t mca_odls_alps_component = {
52
53
54 .version = {
55 ORTE_ODLS_BASE_VERSION_2_0_0,
56
57 .mca_component_name = "alps",
58 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
59 ORTE_RELEASE_VERSION),
60
61
62 .mca_open_component = orte_odls_alps_component_open,
63 .mca_close_component = orte_odls_alps_component_close,
64 .mca_query_component = orte_odls_alps_component_query,
65 },
66 .base_data = {
67
68 MCA_BASE_METADATA_PARAM_CHECKPOINT
69 },
70 };
71
72
73 int orte_odls_alps_component_open(void)
74 {
75 return ORTE_SUCCESS;
76 }
77
78 int orte_odls_alps_component_query(mca_base_module_t **module, int *priority)
79 {
80 int rc = ORTE_SUCCESS;
81 bool flag;
82
83
84
85
86
87 if (!ORTE_PROC_IS_DAEMON) {
88 *priority = 0;
89 *module = NULL;
90 rc = ORTE_ERROR;
91 }
92
93
94
95
96
97
98
99 rc = orte_common_alps_proc_in_pagg(&flag);
100 if ((ORTE_SUCCESS == rc) && flag) {
101 *priority = 10;
102 *module = (mca_base_module_t *) &orte_odls_alps_module;
103 }
104
105 return rc;
106 }
107
108
109 int orte_odls_alps_component_close(void)
110 {
111 return ORTE_SUCCESS;
112 }
113
114