This source file includes following definitions.
- opal_pmix_base_select
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #include "opal_config.h"
18
19 #include "opal/constants.h"
20 #include "opal/mca/mca.h"
21 #include "opal/mca/base/base.h"
22 #include "opal/mca/pmix/pmix.h"
23 #include "opal/mca/pmix/base/base.h"
24 #include "opal/util/opal_environ.h"
25
26
27
28
29
30 int opal_pmix_base_select(void)
31 {
32 opal_pmix_base_component_t *best_component = NULL;
33 opal_pmix_base_module_t *best_module = NULL;
34
35
36
37
38
39 char *pmix_show_load_errors_env = mca_base_component_show_load_errors ? "1" : "0";
40 opal_setenv("PMIX_MCA_mca_base_component_show_load_errors", pmix_show_load_errors_env, true, &environ);
41
42
43
44
45 if( OPAL_SUCCESS != mca_base_select("pmix", opal_pmix_base_framework.framework_output,
46 &opal_pmix_base_framework.framework_components,
47 (mca_base_module_t **) &best_module,
48 (mca_base_component_t **) &best_component, NULL) ) {
49
50 return OPAL_ERR_NOT_FOUND;
51 }
52
53
54 opal_pmix = *best_module;
55
56
57
58
59
60 return OPAL_SUCCESS;
61 }