This source file includes following definitions.
- orte_routed_direct_component_query
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #include "orte_config.h"
16 #include "orte/constants.h"
17
18 #include "opal/mca/base/base.h"
19
20 #include "orte/runtime/orte_globals.h"
21 #include "orte/util/proc_info.h"
22
23 #include "orte/mca/routed/base/base.h"
24 #include "routed_direct.h"
25
26 static int orte_routed_direct_component_query(mca_base_module_t **module, int *priority);
27
28
29
30
31 orte_routed_component_t mca_routed_direct_component = {
32
33
34
35 .base_version = {
36 ORTE_ROUTED_BASE_VERSION_3_0_0,
37
38 .mca_component_name = "direct",
39 MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
40 ORTE_RELEASE_VERSION),
41 .mca_query_component = orte_routed_direct_component_query
42 },
43 .base_data = {
44
45 MCA_BASE_METADATA_PARAM_CHECKPOINT
46 },
47 };
48
49 static int orte_routed_direct_component_query(mca_base_module_t **module, int *priority)
50 {
51
52
53 if (ORTE_PROC_IS_APP && NULL == orte_process_info.my_daemon_uri) {
54
55
56 ORTE_PROC_MY_DAEMON->jobid = 0;
57 ORTE_PROC_MY_DAEMON->vpid = 0;
58 *priority = 100;
59 } else if (ORTE_PROC_IS_SINGLETON) {
60 *priority = 100;
61 } else {
62
63 *priority = 0;
64 }
65 *module = (mca_base_module_t *) &orte_routed_direct_module;
66 return ORTE_SUCCESS;
67 }