This source file includes following definitions.
- mca_base_close
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #include "opal_config.h"
24
25 #include "opal/util/output.h"
26 #include "opal/mca/mca.h"
27 #include "opal/mca/base/base.h"
28 #include "opal/mca/base/mca_base_component_repository.h"
29 #include "opal/constants.h"
30
31 extern int mca_base_opened;
32
33
34
35
36
37 void mca_base_close (void)
38 {
39 assert (mca_base_opened);
40 if (--mca_base_opened) {
41 return;
42 }
43
44
45 int group_id = mca_base_var_group_find ("opal", "mca", "base");
46
47 if (-1 < group_id) {
48 mca_base_var_group_deregister (group_id);
49 }
50
51
52 free (mca_base_system_default_path);
53 mca_base_system_default_path = NULL;
54
55 free (mca_base_user_default_path);
56 mca_base_user_default_path = NULL;
57
58
59 mca_base_component_repository_finalize();
60
61
62 mca_base_component_find_finalize();
63
64
65 opal_output_close(0);
66 }