This source file includes following definitions.
- basic_register
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 #include "ompi_config.h"
30 #include "coll_basic.h"
31
32 #include "mpi.h"
33 #include "ompi/mca/coll/coll.h"
34 #include "coll_basic.h"
35
36
37
38
39 const char *mca_coll_basic_component_version_string =
40 "Open MPI basic collective MCA component version " OMPI_VERSION;
41
42
43
44
45 int mca_coll_basic_priority = 10;
46 int mca_coll_basic_crossover = 4;
47
48
49
50
51 static int basic_register(void);
52
53
54
55
56
57
58 const mca_coll_base_component_2_0_0_t mca_coll_basic_component = {
59
60
61
62
63 .collm_version = {
64 MCA_COLL_BASE_VERSION_2_0_0,
65
66
67 .mca_component_name = "basic",
68 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
69 OMPI_RELEASE_VERSION),
70
71
72 .mca_register_component_params = basic_register,
73 },
74 .collm_data = {
75
76 MCA_BASE_METADATA_PARAM_CHECKPOINT
77 },
78
79
80
81 .collm_init_query = mca_coll_basic_init_query,
82 .collm_comm_query = mca_coll_basic_comm_query,
83 };
84
85
86 static int
87 basic_register(void)
88 {
89
90
91 mca_coll_basic_priority = 10;
92 (void) mca_base_component_var_register(&mca_coll_basic_component.collm_version, "priority",
93 "Priority of the basic coll component",
94 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
95 OPAL_INFO_LVL_9,
96 MCA_BASE_VAR_SCOPE_READONLY,
97 &mca_coll_basic_priority);
98 mca_coll_basic_crossover = 4;
99 (void) mca_base_component_var_register(&mca_coll_basic_component.collm_version, "crossover",
100 "Minimum number of processes in a communicator before using the logarithmic algorithms",
101 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
102 OPAL_INFO_LVL_9,
103 MCA_BASE_VAR_SCOPE_READONLY,
104 &mca_coll_basic_crossover);
105
106 return OMPI_SUCCESS;
107 }
108
109 OBJ_CLASS_INSTANCE(mca_coll_basic_module_t,
110 mca_coll_base_module_t,
111 NULL,
112 NULL);
113