This source file includes following definitions.
- pmix_compress_base_select
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 #include "pmix_config.h"
19
20 #ifdef HAVE_UNISTD_H
21 #include "unistd.h"
22 #endif
23
24 #include "pmix_common.h"
25 #include "src/util/output.h"
26 #include "src/mca/mca.h"
27 #include "src/mca/base/base.h"
28 #include "src/mca/pcompress/base/base.h"
29
30 int pmix_compress_base_select(void)
31 {
32 int ret = PMIX_SUCCESS;
33 pmix_compress_base_component_t *best_component = NULL;
34 pmix_compress_base_module_t *best_module = NULL;
35
36
37
38
39 if( PMIX_SUCCESS != pmix_mca_base_select("pcompress", pmix_pcompress_base_framework.framework_output,
40 &pmix_pcompress_base_framework.framework_components,
41 (pmix_mca_base_module_t **) &best_module,
42 (pmix_mca_base_component_t **) &best_component, NULL) ) {
43
44
45 goto cleanup;
46 }
47
48
49 if (NULL != best_module) {
50 if (PMIX_SUCCESS != (ret = best_module->init()) ) {
51 goto cleanup;
52 }
53 pmix_compress = *best_module;
54 }
55
56 cleanup:
57 return ret;
58 }