This source file includes following definitions.
- orte_ras_base_select
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "orte_config.h"
23 #include "orte/constants.h"
24
25 #include "orte/mca/mca.h"
26 #include "opal/mca/base/base.h"
27
28
29 #include "orte/mca/ras/base/ras_private.h"
30 #include "orte/mca/ras/base/base.h"
31
32
33
34
35
36 int orte_ras_base_select(void)
37 {
38
39
40 orte_ras_base_component_t *best_component = NULL;
41 orte_ras_base_module_t *best_module = NULL;
42
43
44
45
46 if( OPAL_SUCCESS != mca_base_select("ras", orte_ras_base_framework.framework_output,
47 &orte_ras_base_framework.framework_components,
48 (mca_base_module_t **) &best_module,
49 (mca_base_component_t **) &best_component, NULL) ) {
50
51
52 return ORTE_SUCCESS;
53 }
54
55
56
57 orte_ras_base.active_module = best_module;
58 if (NULL != orte_ras_base.active_module->init) {
59 return orte_ras_base.active_module->init();
60 }
61
62 return ORTE_SUCCESS;
63 }