This source file includes following definitions.
- orte_errmgr_base_select
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #include "orte_config.h"
25 #include "orte/constants.h"
26
27 #include <string.h>
28
29 #include "orte/mca/mca.h"
30 #include "opal/mca/base/base.h"
31 #include "opal/util/output.h"
32
33 #include "orte/mca/errmgr/base/base.h"
34 #include "orte/mca/errmgr/base/errmgr_private.h"
35
36 int orte_errmgr_base_select(void)
37 {
38 int exit_status = OPAL_SUCCESS;
39 orte_errmgr_base_component_t *best_component = NULL;
40 orte_errmgr_base_module_t *best_module = NULL;
41
42
43
44
45 if( OPAL_SUCCESS != mca_base_select("errmgr", orte_errmgr_base_framework.framework_output,
46 &orte_errmgr_base_framework.framework_components,
47 (mca_base_module_t **) &best_module,
48 (mca_base_component_t **) &best_component, NULL) ) {
49
50 exit_status = ORTE_ERROR;
51 goto cleanup;
52 }
53
54
55 orte_errmgr = *best_module;
56
57
58 if (NULL != best_module) {
59 if (OPAL_SUCCESS != orte_errmgr.init()) {
60 exit_status = OPAL_ERROR;
61 goto cleanup;
62 }
63 }
64
65 cleanup:
66 return exit_status;
67 }