This source file includes following definitions.
- ras_register
- orte_ras_base_close
- orte_ras_base_open
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 #include "orte/constants.h"
26
27 #include "orte/mca/mca.h"
28 #include "opal/mca/base/base.h"
29 #include "opal/mca/event/event.h"
30
31 #include "orte/mca/ras/base/ras_private.h"
32 #include "orte/mca/ras/base/base.h"
33
34
35
36
37
38
39
40
41
42
43
44
45
46 #include "orte/mca/ras/base/static-components.h"
47
48
49
50
51 orte_ras_base_t orte_ras_base = {0};
52
53 static int ras_register(mca_base_register_flag_t flags)
54 {
55 orte_ras_base.multiplier = 1;
56 mca_base_var_register("orte", "ras", "base", "multiplier",
57 "Simulate a larger cluster by launching N daemons/node",
58 MCA_BASE_VAR_TYPE_INT,
59 NULL, 0, 0,
60 OPAL_INFO_LVL_9,
61 MCA_BASE_VAR_SCOPE_READONLY, &orte_ras_base.multiplier);
62 #if SLURM_CRAY_ENV
63
64
65
66
67
68
69
70
71
72
73
74
75
76 orte_ras_base.launch_orted_on_hn = true;
77 #else
78 orte_ras_base.launch_orted_on_hn = false;
79 #endif
80
81 mca_base_var_register("orte", "ras", "base", "launch_orted_on_hn",
82 "Launch an orte daemon on the head node",
83 MCA_BASE_VAR_TYPE_BOOL,
84 NULL, 0, 0,
85 OPAL_INFO_LVL_9,
86 MCA_BASE_VAR_SCOPE_READONLY, &orte_ras_base.launch_orted_on_hn);
87 return ORTE_SUCCESS;
88 }
89
90 static int orte_ras_base_close(void)
91 {
92
93 if (NULL != orte_ras_base.active_module) {
94 orte_ras_base.active_module->finalize();
95 }
96
97 return mca_base_framework_components_close(&orte_ras_base_framework, NULL);
98 }
99
100
101
102
103
104 static int orte_ras_base_open(mca_base_open_flag_t flags)
105 {
106
107 orte_ras_base.active_module = NULL;
108 orte_ras_base.allocation_read = false;
109 orte_ras_base.total_slots_alloc = 0;
110
111
112 return mca_base_framework_components_open(&orte_ras_base_framework, flags);
113 }
114
115 MCA_BASE_FRAMEWORK_DECLARE(orte, ras, "ORTE Resource Allocation Subsystem",
116 ras_register, orte_ras_base_open, orte_ras_base_close,
117 mca_ras_base_static_components, 0);