This source file includes following definitions.
- ompi_mpiext_init
- ompi_mpiext_fini
1 #include "ompi_config.h"
2
3 #include <stdlib.h>
4
5 #include "ompi/constants.h"
6 #include "ompi/mpiext/mpiext.h"
7 #include "ompi/mpiext/static-components.h"
8
9
10 int
11 ompi_mpiext_init(void)
12 {
13 const ompi_mpiext_component_t **tmp = ompi_mpiext_components;
14 int ret;
15
16 while (NULL != (*tmp)) {
17 if (NULL != (*tmp)->init) {
18 ret = (*tmp)->init();
19 if (OMPI_SUCCESS != ret) return ret;
20 }
21 tmp++;
22 }
23
24 return OMPI_SUCCESS;
25 }
26
27
28 int
29 ompi_mpiext_fini(void)
30 {
31 const ompi_mpiext_component_t **tmp = ompi_mpiext_components;
32 int ret;
33
34 while (NULL != (*tmp)) {
35 if (NULL != (*tmp)->fini) {
36 ret = (*tmp)->fini();
37 if (OMPI_SUCCESS != ret) return ret;
38 }
39 tmp++;
40 }
41
42 return OMPI_SUCCESS;
43 }