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
29
30
31 #ifndef ORTE_PLM_H
32 #define ORTE_PLM_H
33
34
35
36
37
38 #include "orte_config.h"
39 #include "orte/types.h"
40
41 #include "orte/mca/mca.h"
42 #include "opal/dss/dss_types.h"
43 #include "opal/class/opal_pointer_array.h"
44
45 #include "orte/runtime/orte_globals.h"
46
47 #include "plm_types.h"
48
49 BEGIN_C_DECLS
50
51
52
53
54
55
56
57
58 typedef int (*orte_plm_base_module_init_fn_t)(void);
59
60
61
62
63 typedef int (*orte_plm_base_module_spawn_fn_t)(orte_job_t *jdata);
64
65
66
67
68 typedef int (*orte_plm_base_module_remote_spawn_fn_t)(void);
69
70
71
72
73 typedef int (*orte_plm_base_module_set_hnp_name_fn_t)(void);
74
75
76
77
78
79 typedef int (*orte_plm_base_module_finalize_fn_t)(void);
80
81
82
83
84
85 typedef int (*orte_plm_base_module_terminate_job_fn_t)(orte_jobid_t);
86
87
88
89
90 typedef int (*orte_plm_base_module_terminate_orteds_fn_t)(void);
91
92
93
94
95 typedef int (*orte_plm_base_module_terminate_procs_fn_t)(opal_pointer_array_t *procs);
96
97
98
99
100
101 typedef int (*orte_plm_base_module_signal_job_fn_t)(orte_jobid_t, int32_t);
102
103
104
105
106 struct orte_plm_base_module_1_0_0_t {
107 orte_plm_base_module_init_fn_t init;
108 orte_plm_base_module_set_hnp_name_fn_t set_hnp_name;
109 orte_plm_base_module_spawn_fn_t spawn;
110 orte_plm_base_module_remote_spawn_fn_t remote_spawn;
111 orte_plm_base_module_terminate_job_fn_t terminate_job;
112 orte_plm_base_module_terminate_orteds_fn_t terminate_orteds;
113 orte_plm_base_module_terminate_procs_fn_t terminate_procs;
114 orte_plm_base_module_signal_job_fn_t signal_job;
115 orte_plm_base_module_finalize_fn_t finalize;
116 };
117
118
119 typedef struct orte_plm_base_module_1_0_0_t orte_plm_base_module_1_0_0_t;
120
121 typedef struct orte_plm_base_module_1_0_0_t orte_plm_base_module_t;
122
123
124
125
126
127 struct orte_plm_base_component_2_0_0_t {
128
129 mca_base_component_t base_version;
130
131 mca_base_component_data_t base_data;
132 };
133
134 typedef struct orte_plm_base_component_2_0_0_t orte_plm_base_component_2_0_0_t;
135
136 typedef orte_plm_base_component_2_0_0_t orte_plm_base_component_t;
137
138
139
140
141
142 #define ORTE_PLM_BASE_VERSION_2_0_0 \
143 ORTE_MCA_BASE_VERSION_2_1_0("plm", 2, 0, 0)
144
145
146 ORTE_DECLSPEC extern orte_plm_base_module_t orte_plm;
147
148 END_C_DECLS
149
150 #endif