This source file includes following definitions.
- opal_crs_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 "opal_config.h"
23
24 #ifdef HAVE_UNISTD_H
25 #include "unistd.h"
26 #endif
27
28 #include "opal/constants.h"
29 #include "opal/util/output.h"
30 #include "opal/mca/mca.h"
31 #include "opal/mca/base/base.h"
32 #include "opal/mca/crs/crs.h"
33 #include "opal/mca/crs/base/base.h"
34
35 bool opal_crs_base_do_not_select = false;
36
37 int opal_crs_base_select(void)
38 {
39 opal_crs_base_component_t *best_component = NULL;
40 opal_crs_base_module_t *best_module = NULL;
41 int ret;
42
43 if( !opal_cr_is_enabled ) {
44 opal_output_verbose(10, opal_crs_base_framework.framework_output,
45 "crs:select: FT is not enabled, skipping!");
46 return OPAL_SUCCESS;
47 }
48
49 if( opal_crs_base_do_not_select ) {
50 opal_output_verbose(10, opal_crs_base_framework.framework_output,
51 "crs:select: Not selecting at this time!");
52 return OPAL_SUCCESS;
53 }
54
55
56
57
58 if( OPAL_SUCCESS != mca_base_select("crs", opal_crs_base_framework.framework_output,
59 &opal_crs_base_framework.framework_components,
60 (mca_base_module_t **) &best_module,
61 (mca_base_component_t **) &best_component, NULL) ) {
62
63 return OPAL_ERROR;
64 }
65
66
67
68
69 opal_crs_base_selected_component = *best_component;
70 opal_crs = *best_module;
71
72
73 if (OPAL_SUCCESS != (ret = opal_crs.crs_init()) ) {
74 return ret;
75 }
76
77 return OPAL_SUCCESS;
78 }