This source file includes following definitions.
- vulcan_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
30 #include "ompi_config.h"
31 #include "fcoll_vulcan.h"
32 #include "mpi.h"
33
34
35
36
37 const char *mca_fcoll_vulcan_component_version_string =
38 "Open MPI vulcan collective MCA component version " OMPI_VERSION;
39
40
41
42
43 int mca_fcoll_vulcan_priority = 10;
44 int mca_fcoll_vulcan_num_groups = 1;
45 int mca_fcoll_vulcan_write_chunksize = -1;
46 int mca_fcoll_vulcan_async_io = 0;
47
48
49
50
51 static int vulcan_register(void);
52
53
54
55
56
57 mca_fcoll_base_component_2_0_0_t mca_fcoll_vulcan_component = {
58
59
60
61
62 .fcollm_version = {
63 MCA_FCOLL_BASE_VERSION_2_0_0,
64
65
66 .mca_component_name = "vulcan",
67 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
68 OMPI_RELEASE_VERSION),
69 .mca_register_component_params = vulcan_register,
70 },
71 .fcollm_data = {
72
73 MCA_BASE_METADATA_PARAM_CHECKPOINT
74 },
75
76 .fcollm_init_query = mca_fcoll_vulcan_component_init_query,
77 .fcollm_file_query = mca_fcoll_vulcan_component_file_query,
78 .fcollm_file_unquery = mca_fcoll_vulcan_component_file_unquery,
79 };
80
81
82 static int
83 vulcan_register(void)
84 {
85 mca_fcoll_vulcan_priority = 10;
86 (void) mca_base_component_var_register(&mca_fcoll_vulcan_component.fcollm_version,
87 "priority", "Priority of the vulcan fcoll component",
88 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
89 OPAL_INFO_LVL_9,
90 MCA_BASE_VAR_SCOPE_READONLY, &mca_fcoll_vulcan_priority);
91
92 mca_fcoll_vulcan_num_groups = 1;
93 (void) mca_base_component_var_register(&mca_fcoll_vulcan_component.fcollm_version,
94 "num_groups", "Number of subgroups created by the vulcan component",
95 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
96 OPAL_INFO_LVL_9,
97 MCA_BASE_VAR_SCOPE_READONLY, &mca_fcoll_vulcan_num_groups);
98
99 mca_fcoll_vulcan_write_chunksize = -1;
100 (void) mca_base_component_var_register(&mca_fcoll_vulcan_component.fcollm_version,
101 "write_chunksize", "Chunk size written at once. Default: stripe_size of the file system",
102 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
103 OPAL_INFO_LVL_9,
104 MCA_BASE_VAR_SCOPE_READONLY, &mca_fcoll_vulcan_write_chunksize);
105
106 mca_fcoll_vulcan_async_io = 0;
107 (void) mca_base_component_var_register(&mca_fcoll_vulcan_component.fcollm_version,
108 "async_io", "Asynchronous I/O support options. 0: Automatic choice (default) "
109 "1: Asynchronous I/O only. 2: Synchronous I/O only.",
110 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
111 OPAL_INFO_LVL_9,
112 MCA_BASE_VAR_SCOPE_READONLY, &mca_fcoll_vulcan_async_io);
113
114 return OMPI_SUCCESS;
115 }