This source file includes following definitions.
- inter_register
- mca_coll_inter_module_construct
- mca_coll_inter_module_destruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 #include "ompi_config.h"
31 #include "coll_inter.h"
32
33 #include "mpi.h"
34 #include "ompi/mca/coll/coll.h"
35
36
37
38
39 const char *mca_coll_inter_component_version_string =
40 "OMPI/MPI inter collective MCA component version " OMPI_VERSION;
41
42
43
44
45 int mca_coll_inter_priority_param = 40;
46 int mca_coll_inter_verbose_param = 0;
47
48
49
50
51
52 static int inter_register(void);
53
54
55
56
57
58
59 const mca_coll_base_component_2_0_0_t mca_coll_inter_component = {
60
61
62
63
64 .collm_version = {
65 MCA_COLL_BASE_VERSION_2_0_0,
66
67
68 .mca_component_name = "inter",
69 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
70 OMPI_RELEASE_VERSION),
71
72
73 .mca_register_component_params = inter_register,
74 },
75 .collm_data = {
76
77 MCA_BASE_METADATA_PARAM_CHECKPOINT
78 },
79
80
81 .collm_init_query = mca_coll_inter_init_query,
82 .collm_comm_query = mca_coll_inter_comm_query,
83 };
84
85
86 static int inter_register(void)
87 {
88
89 mca_coll_inter_priority_param = 40;
90 (void) mca_base_component_var_register(&mca_coll_inter_component.collm_version,
91 "priority", "Priority of the inter coll component",
92 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
93 OPAL_INFO_LVL_9,
94 MCA_BASE_VAR_SCOPE_READONLY,
95 &mca_coll_inter_priority_param);
96
97 mca_coll_inter_verbose_param = 0;
98 (void) mca_base_component_var_register(&mca_coll_inter_component.collm_version,
99 "verbose",
100 "Turn verbose message of the inter coll component on/off",
101 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
102 OPAL_INFO_LVL_9,
103 MCA_BASE_VAR_SCOPE_READONLY,
104 &mca_coll_inter_verbose_param);
105
106 return OMPI_SUCCESS;
107 }
108
109
110 static void
111 mca_coll_inter_module_construct(mca_coll_inter_module_t *module)
112 {
113 module->inter_comm = NULL;
114 }
115
116 static void
117 mca_coll_inter_module_destruct(mca_coll_inter_module_t *module)
118 {
119
120 }
121
122
123 OBJ_CLASS_INSTANCE(mca_coll_inter_module_t,
124 mca_coll_base_module_t,
125 mca_coll_inter_module_construct,
126 mca_coll_inter_module_destruct);