This source file includes following definitions.
- component_query
1
2
3
4
5
6
7
8
9
10
11
12
13 #include "orte_config.h"
14 #include "orte/types.h"
15 #include "opal/types.h"
16
17 #include "opal/util/show_help.h"
18
19 #include "orte/runtime/orte_globals.h"
20
21 #include "orte/mca/schizo/schizo.h"
22 #include "schizo_ompi.h"
23
24 static int component_query(mca_base_module_t **module, int *priority);
25
26
27
28
29 orte_schizo_base_component_t mca_schizo_ompi_component = {
30 .base_version = {
31 MCA_SCHIZO_BASE_VERSION_1_0_0,
32 .mca_component_name = "ompi",
33 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
34 ORTE_RELEASE_VERSION),
35 .mca_query_component = component_query,
36 },
37 .base_data = {
38
39 MCA_BASE_METADATA_PARAM_CHECKPOINT
40 },
41 };
42
43 static int component_query(mca_base_module_t **module, int *priority)
44 {
45
46 if (ORTE_PROC_IS_APP) {
47 *module = NULL;
48 *priority = 0;
49 return ORTE_ERROR;
50 }
51 *module = (mca_base_module_t*)&orte_schizo_ompi_module;
52 *priority = 10;
53 return ORTE_SUCCESS;
54 }
55