This source file includes following definitions.
- orte_ras_lsf_open
- orte_ras_lsf_component_query
- orte_ras_lsf_close
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #include "orte_config.h"
24 #include "orte/constants.h"
25
26 #include <lsf/lsbatch.h>
27
28 #include "opal/mca/base/base.h"
29
30 #include "ras_lsf.h"
31
32
33
34
35
36 static int orte_ras_lsf_open(void);
37 static int orte_ras_lsf_close(void);
38 static int orte_ras_lsf_component_query(mca_base_module_t **module, int *priority);
39
40
41 orte_ras_base_component_t mca_ras_lsf_component = {
42 .base_version = {
43
44
45
46 ORTE_RAS_BASE_VERSION_2_0_0,
47
48 .mca_component_name = "lsf",
49 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
50 ORTE_RELEASE_VERSION),
51 .mca_open_component = orte_ras_lsf_open,
52 .mca_close_component = orte_ras_lsf_close,
53 .mca_query_component = orte_ras_lsf_component_query,
54 },
55 .base_data = {
56
57 MCA_BASE_METADATA_PARAM_CHECKPOINT
58 },
59 };
60
61
62
63
64
65 static int orte_ras_lsf_open(void)
66 {
67 return ORTE_SUCCESS;
68 }
69
70
71 static int orte_ras_lsf_component_query(mca_base_module_t **module, int *priority)
72 {
73
74 if (NULL == getenv("LSB_JOBID") || lsb_init("ORTE launcher") < 0) {
75
76 *module = NULL;
77 return ORTE_ERROR;
78 }
79
80 *priority = 75;
81 *module = (mca_base_module_t *) &orte_ras_lsf_module;
82 return ORTE_SUCCESS;
83 }
84
85
86
87
88
89 static int orte_ras_lsf_close(void)
90 {
91 return ORTE_SUCCESS;
92 }
93
94