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 #ifndef OMPI_MCA_FCOLL_H
26 #define OMPI_MCA_FCOLL_H
27
28 #include "ompi_config.h"
29 #include "mpi.h"
30 #include "ompi/mca/mca.h"
31 #include "opal/mca/base/base.h"
32 #include "ompi/request/request.h"
33
34 BEGIN_C_DECLS
35
36 struct ompio_file_t;
37 struct mca_fcoll_request_t;
38
39
40
41
42 #define MCA_FCOLL_BASE_VERSION_2_0_0 \
43 OMPI_MCA_BASE_VERSION_2_1_0("fcoll", 2, 0, 0)
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 typedef int (*mca_fcoll_base_component_init_query_1_0_0_fn_t)
75 (bool enable_progress_threads,
76 bool enable_mpi_threads);
77
78 typedef struct mca_fcoll_base_module_1_0_0_t *
79 (*mca_fcoll_base_component_file_query_1_0_0_fn_t) (struct ompio_file_t *file,
80 int *priority);
81
82 typedef int (*mca_fcoll_base_component_file_unquery_1_0_0_fn_t)
83 (struct ompio_file_t *file);
84
85
86
87
88
89
90 struct mca_fcoll_base_component_2_0_0_t {
91 mca_base_component_t fcollm_version;
92 mca_base_component_data_t fcollm_data;
93
94 mca_fcoll_base_component_init_query_1_0_0_fn_t fcollm_init_query;
95 mca_fcoll_base_component_file_query_1_0_0_fn_t fcollm_file_query;
96 mca_fcoll_base_component_file_unquery_1_0_0_fn_t fcollm_file_unquery;
97 };
98 typedef struct mca_fcoll_base_component_2_0_0_t mca_fcoll_base_component_2_0_0_t;
99 typedef struct mca_fcoll_base_component_2_0_0_t mca_fcoll_base_component_t;
100
101
102
103
104
105
106
107
108
109 typedef int (*mca_fcoll_base_module_init_1_0_0_fn_t)
110 (struct ompio_file_t *file);
111
112 typedef int (*mca_fcoll_base_module_finalize_1_0_0_fn_t)
113 (struct ompio_file_t *file);
114
115 typedef int (*mca_fcoll_base_module_file_read_all_fn_t)
116 (struct ompio_file_t *fh,
117 void *buf,
118 int count,
119 struct ompi_datatype_t *datatype,
120 ompi_status_public_t *status);
121
122 typedef int (*mca_fcoll_base_module_file_iread_all_fn_t)
123 (struct ompio_file_t *fh,
124 void *buf,
125 int count,
126 struct ompi_datatype_t *datatype,
127 ompi_request_t **request);
128
129 typedef int (*mca_fcoll_base_module_file_write_all_fn_t)
130 (struct ompio_file_t *fh,
131 const void *buf,
132 int count,
133 struct ompi_datatype_t *datatype,
134 ompi_status_public_t *status);
135
136 typedef int (*mca_fcoll_base_module_file_iwrite_all_fn_t)
137 (struct ompio_file_t *fh,
138 const void *buf,
139 int count,
140 struct ompi_datatype_t *datatype,
141 ompi_request_t **request);
142
143 typedef bool (*mca_fcoll_base_module_progress_fn_t)
144 ( struct mca_fcoll_request_t *request);
145
146 typedef void (*mca_fcoll_base_module_request_free_fn_t)
147 ( struct mca_fcoll_request_t *request);
148
149
150
151
152
153
154 struct mca_fcoll_base_module_1_0_0_t {
155
156
157
158
159
160 mca_fcoll_base_module_init_1_0_0_fn_t fcoll_module_init;
161 mca_fcoll_base_module_finalize_1_0_0_fn_t fcoll_module_finalize;
162
163
164 mca_fcoll_base_module_file_read_all_fn_t fcoll_file_read_all;
165 mca_fcoll_base_module_file_iread_all_fn_t fcoll_file_iread_all;
166 mca_fcoll_base_module_file_write_all_fn_t fcoll_file_write_all;
167 mca_fcoll_base_module_file_iwrite_all_fn_t fcoll_file_iwrite_all;
168 mca_fcoll_base_module_progress_fn_t fcoll_progress;
169 mca_fcoll_base_module_request_free_fn_t fcoll_request_free;
170
171 };
172 typedef struct mca_fcoll_base_module_1_0_0_t mca_fcoll_base_module_1_0_0_t;
173 typedef mca_fcoll_base_module_1_0_0_t mca_fcoll_base_module_t;
174
175 END_C_DECLS
176
177 #endif