This source file includes following definitions.
- mca_plm_base_register
- orte_plm_base_close
- orte_plm_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 "opal/util/output.h"
28 #include "orte/mca/mca.h"
29 #include "opal/mca/base/base.h"
30
31 #include "orte/mca/errmgr/errmgr.h"
32 #include "orte/mca/plm/plm.h"
33 #include "orte/mca/plm/base/plm_private.h"
34 #include "orte/mca/plm/base/base.h"
35
36
37
38
39
40
41
42 #include "orte/mca/plm/base/static-components.h"
43
44
45
46
47 orte_plm_globals_t orte_plm_globals = {0};
48
49
50
51
52 orte_plm_base_module_t orte_plm = {0};
53
54
55 static int mca_plm_base_register(mca_base_register_flag_t flags)
56 {
57 orte_plm_globals.node_regex_threshold = 1024;
58 (void) mca_base_framework_var_register (&orte_plm_base_framework, "node_regex_threshold",
59 "Only pass the node regex on the orted command line if smaller than this threshold",
60 MCA_BASE_VAR_TYPE_SIZE_T, NULL, 0,
61 MCA_BASE_VAR_FLAG_INTERNAL,
62 OPAL_INFO_LVL_9,
63 MCA_BASE_VAR_SCOPE_READONLY,
64 &orte_plm_globals.node_regex_threshold);
65 return ORTE_SUCCESS;
66 }
67
68 static int orte_plm_base_close(void)
69 {
70 int rc;
71
72
73 if( NULL != orte_plm.finalize ) {
74 orte_plm.finalize();
75 }
76
77
78 if (ORTE_PROC_IS_HNP) {
79 if (ORTE_SUCCESS != (rc = orte_plm_base_comm_stop())) {
80 ORTE_ERROR_LOG(rc);
81 return rc;
82 }
83 }
84
85 return mca_base_framework_components_close(&orte_plm_base_framework, NULL);
86 }
87
88
89
90
91
92 static int orte_plm_base_open(mca_base_open_flag_t flags)
93 {
94
95 orte_plm_globals.next_jobid = 1;
96
97
98 orte_plm_globals.daemon_nodes_assigned_at_launch = true;
99
100
101 return mca_base_framework_components_open(&orte_plm_base_framework, flags);
102 }
103
104 MCA_BASE_FRAMEWORK_DECLARE(orte, plm, NULL, mca_plm_base_register, orte_plm_base_open, orte_plm_base_close,
105 mca_plm_base_static_components, 0);