This source file includes following definitions.
- lustre_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 "fs_lustre.h"
31 #include "mpi.h"
32
33
34
35
36 const char *mca_fs_lustre_component_version_string =
37 "OMPI/MPI lustre FS MCA component version " OMPI_VERSION;
38
39 static int lustre_register(void);
40
41 int mca_fs_lustre_priority = 20;
42
43
44
45
46 int mca_fs_lustre_stripe_size = 0;
47 int mca_fs_lustre_stripe_width = 0;
48
49
50
51
52 mca_fs_base_component_2_0_0_t mca_fs_lustre_component = {
53
54
55
56
57 .fsm_version = {
58 MCA_FS_BASE_VERSION_2_0_0,
59
60
61 .mca_component_name = "lustre",
62 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
63 OMPI_RELEASE_VERSION),
64 .mca_register_component_params = lustre_register,
65 },
66 .fsm_data = {
67
68 MCA_BASE_METADATA_PARAM_CHECKPOINT
69 },
70 .fsm_init_query = mca_fs_lustre_component_init_query,
71 .fsm_file_query = mca_fs_lustre_component_file_query,
72 .fsm_file_unquery = mca_fs_lustre_component_file_unquery,
73 };
74
75 static int
76 lustre_register(void)
77 {
78 mca_fs_lustre_priority = 20;
79 (void) mca_base_component_var_register(&mca_fs_lustre_component.fsm_version,
80 "priority", "Priority of the lustre fs component",
81 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
82 OPAL_INFO_LVL_9,
83 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_lustre_priority);
84 mca_fs_lustre_stripe_size = 0;
85 (void) mca_base_component_var_register(&mca_fs_lustre_component.fsm_version,
86 "stripe_size", "stripe size of a file over lustre",
87 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
88 OPAL_INFO_LVL_9,
89 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_lustre_stripe_size);
90 mca_fs_lustre_stripe_width = 0;
91 (void) mca_base_component_var_register(&mca_fs_lustre_component.fsm_version,
92 "stripe_width", "stripe count of a file over lustre",
93 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
94 OPAL_INFO_LVL_9,
95 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_lustre_stripe_width);
96
97 return OMPI_SUCCESS;
98 }