This source file includes following definitions.
- orte_ess_tm_component_open
- orte_ess_tm_component_query
- orte_ess_tm_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 "orte/util/proc_info.h"
32
33 #include "orte/mca/ess/ess.h"
34 #include "orte/mca/ess/tm/ess_tm.h"
35
36 extern orte_ess_base_module_t orte_ess_tm_module;
37
38
39
40
41
42 orte_ess_base_component_t mca_ess_tm_component = {
43 .base_version = {
44 ORTE_ESS_BASE_VERSION_3_0_0,
45
46
47 .mca_component_name = "tm",
48 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
49 ORTE_RELEASE_VERSION),
50
51
52 .mca_open_component = orte_ess_tm_component_open,
53 .mca_close_component = orte_ess_tm_component_close,
54 .mca_query_component = orte_ess_tm_component_query,
55 },
56 .base_data = {
57
58 MCA_BASE_METADATA_PARAM_CHECKPOINT
59 },
60 };
61
62
63 int
64 orte_ess_tm_component_open(void)
65 {
66 return ORTE_SUCCESS;
67 }
68
69
70 int orte_ess_tm_component_query(mca_base_module_t **module, int *priority)
71 {
72
73
74
75
76
77
78 if (ORTE_PROC_IS_DAEMON &&
79 NULL != getenv("PBS_JOBID") &&
80 NULL != orte_process_info.my_hnp_uri) {
81 *priority = 30;
82 *module = (mca_base_module_t *)&orte_ess_tm_module;
83 return ORTE_SUCCESS;
84 }
85
86
87 *priority = -1;
88 *module = NULL;
89 return ORTE_ERROR;
90 }
91
92
93 int
94 orte_ess_tm_component_close(void)
95 {
96 return ORTE_SUCCESS;
97 }
98