This source file includes following definitions.
- orte_iof_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 #include "orte/util/proc_info.h"
29 #include "orte/mca/errmgr/errmgr.h"
30
31 #include "orte/mca/iof/iof.h"
32 #include "orte/mca/iof/base/base.h"
33
34
35
36
37
38
39 int orte_iof_base_select(void)
40 {
41 orte_iof_base_component_t *best_component = NULL;
42 orte_iof_base_module_t *best_module = NULL;
43 int rc;
44
45
46
47
48 if( OPAL_SUCCESS != mca_base_select("iof", orte_iof_base_framework.framework_output,
49 &orte_iof_base_framework.framework_components,
50 (mca_base_module_t **) &best_module,
51 (mca_base_component_t **) &best_component, NULL) ) {
52
53 return ORTE_ERR_NOT_FOUND;
54 }
55
56
57 orte_iof = *best_module;
58
59 if (NULL != orte_iof.init) {
60 if (ORTE_SUCCESS != (rc = orte_iof.init())) {
61 ORTE_ERROR_LOG(rc);
62 return rc;
63 }
64 }
65
66 return ORTE_SUCCESS;
67 }
68