This source file includes following definitions.
- opal_pstat_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 "opal_config.h"
25
26 #include "opal/constants.h"
27 #include "opal/mca/mca.h"
28 #include "opal/mca/base/base.h"
29 #include "opal/mca/pstat/pstat.h"
30 #include "opal/mca/pstat/base/base.h"
31
32
33
34
35
36 int opal_pstat_base_select(void)
37 {
38 int ret, exit_status = OPAL_SUCCESS;
39 opal_pstat_base_component_t *best_component = NULL;
40 opal_pstat_base_module_t *best_module = NULL;
41
42
43
44
45 if( OPAL_SUCCESS != mca_base_select("pstat", opal_pstat_base_framework.framework_output,
46 &opal_pstat_base_framework.framework_components,
47 (mca_base_module_t **) &best_module,
48 (mca_base_component_t **) &best_component, NULL) ) {
49
50
51
52 goto cleanup;
53 }
54
55
56 opal_pstat_base_component = best_component;
57 opal_pstat = *best_module;
58
59
60 if (OPAL_SUCCESS != (ret = opal_pstat.init()) ) {
61 exit_status = ret;
62 goto cleanup;
63 }
64
65 cleanup:
66 return exit_status;
67 }