@@ -102,41 +102,41 @@ enum ompio_fs_type
102
102
PLFS = 4
103
103
};
104
104
105
- typedef struct mca_io_ompio_io_array_t {
105
+ typedef struct mca_common_ompio_io_array_t {
106
106
void * memory_address ;
107
107
/* we need that of type OMPI_MPI_OFFSET_TYPE */
108
108
void * offset ;
109
109
size_t length ;
110
- /*mca_io_ompio_server_t io_server;*/
111
- } mca_io_ompio_io_array_t ;
110
+ /*mca_common_ompio_server_t io_server;*/
111
+ } mca_common_ompio_io_array_t ;
112
112
113
113
114
- typedef struct mca_io_ompio_access_array_t {
114
+ typedef struct mca_common_ompio_access_array_t {
115
115
OMPI_MPI_OFFSET_TYPE * offsets ;
116
116
int * lens ;
117
117
MPI_Aint * mem_ptrs ;
118
118
int count ;
119
- } mca_io_ompio_access_array_t ;
119
+ } mca_common_ompio_access_array_t ;
120
120
121
121
122
122
/* forward declaration to keep the compiler happy. */
123
- struct mca_io_ompio_file_t ;
124
- typedef int (* mca_io_ompio_generate_current_file_view_fn_t ) (struct mca_io_ompio_file_t * fh ,
125
- size_t max_data ,
126
- struct iovec * * f_iov ,
127
- int * iov_count );
123
+ struct ompio_file_t ;
124
+ typedef int (* mca_common_ompio_generate_current_file_view_fn_t ) (struct ompio_file_t * fh ,
125
+ size_t max_data ,
126
+ struct iovec * * f_iov ,
127
+ int * iov_count );
128
128
129
129
/* functions to retrieve the number of aggregators and the size of the
130
130
temporary buffer on aggregators from the fcoll modules */
131
- typedef int (* mca_io_ompio_get_mca_parameter_value_fn_t ) ( char * mca_parameter_name , int name_length );
131
+ typedef int (* mca_common_ompio_get_mca_parameter_value_fn_t ) ( char * mca_parameter_name , int name_length );
132
132
133
133
134
134
struct mca_common_ompio_print_queue ;
135
135
136
136
/**
137
137
* Back-end structure for MPI_File
138
138
*/
139
- struct mca_io_ompio_file_t {
139
+ struct ompio_file_t {
140
140
/* General parameters */
141
141
int fd ;
142
142
struct ompi_file_t * f_fh ; /* pointer back to the file_t structure */
@@ -183,7 +183,7 @@ struct mca_io_ompio_file_t {
183
183
size_t f_etype_size ;
184
184
185
185
/* contains IO requests that needs to be read/written */
186
- mca_io_ompio_io_array_t * f_io_array ;
186
+ mca_common_ompio_io_array_t * f_io_array ;
187
187
int f_num_of_io_entries ;
188
188
189
189
/* Hooks for modules to hang things */
@@ -215,85 +215,85 @@ struct mca_io_ompio_file_t {
215
215
int f_procs_per_group ;
216
216
217
217
/* internal ompio functions required by fbtl and fcoll */
218
- mca_io_ompio_generate_current_file_view_fn_t f_generate_current_file_view ;
218
+ mca_common_ompio_generate_current_file_view_fn_t f_generate_current_file_view ;
219
219
220
- mca_io_ompio_get_mca_parameter_value_fn_t f_get_mca_parameter_value ;
220
+ mca_common_ompio_get_mca_parameter_value_fn_t f_get_mca_parameter_value ;
221
221
};
222
- typedef struct mca_io_ompio_file_t mca_io_ompio_file_t ;
222
+ typedef struct ompio_file_t ompio_file_t ;
223
223
224
- struct mca_io_ompio_data_t {
225
- mca_io_ompio_file_t ompio_fh ;
224
+ struct mca_common_ompio_data_t {
225
+ ompio_file_t ompio_fh ;
226
226
};
227
- typedef struct mca_io_ompio_data_t mca_io_ompio_data_t ;
227
+ typedef struct mca_common_ompio_data_t mca_common_ompio_data_t ;
228
228
229
229
230
230
#include "common_ompio_print_queue.h"
231
231
#include "common_ompio_aggregators.h"
232
232
233
- OMPI_DECLSPEC int mca_common_ompio_file_write (mca_io_ompio_file_t * fh , const void * buf , int count ,
233
+ OMPI_DECLSPEC int mca_common_ompio_file_write (ompio_file_t * fh , const void * buf , int count ,
234
234
struct ompi_datatype_t * datatype ,
235
235
ompi_status_public_t * status );
236
236
237
- OMPI_DECLSPEC int mca_common_ompio_file_write_at (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
237
+ OMPI_DECLSPEC int mca_common_ompio_file_write_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
238
238
int count , struct ompi_datatype_t * datatype ,
239
239
ompi_status_public_t * status );
240
240
241
- OMPI_DECLSPEC int mca_common_ompio_file_iwrite (mca_io_ompio_file_t * fh , const void * buf , int count ,
241
+ OMPI_DECLSPEC int mca_common_ompio_file_iwrite (ompio_file_t * fh , const void * buf , int count ,
242
242
struct ompi_datatype_t * datatype , ompi_request_t * * request );
243
243
244
- OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
244
+ OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
245
245
const void * buf , int count , struct ompi_datatype_t * datatype ,
246
246
ompi_request_t * * request );
247
247
248
- OMPI_DECLSPEC int mca_common_ompio_file_write_at_all (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
248
+ OMPI_DECLSPEC int mca_common_ompio_file_write_at_all (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
249
249
int count , struct ompi_datatype_t * datatype ,
250
250
ompi_status_public_t * status );
251
251
252
252
253
- OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (mca_io_ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
253
+ OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
254
254
int count , struct ompi_datatype_t * datatype , ompi_request_t * * request );
255
255
256
- OMPI_DECLSPEC int mca_common_ompio_build_io_array ( mca_io_ompio_file_t * fh , int index , int cycles ,
256
+ OMPI_DECLSPEC int mca_common_ompio_build_io_array ( ompio_file_t * fh , int index , int cycles ,
257
257
size_t bytes_per_cycle , int max_data , uint32_t iov_count ,
258
258
struct iovec * decoded_iov , int * ii , int * jj , size_t * tbw ,
259
259
size_t * spc );
260
260
261
261
262
- OMPI_DECLSPEC int mca_common_ompio_file_read (mca_io_ompio_file_t * fh , void * buf , int count ,
262
+ OMPI_DECLSPEC int mca_common_ompio_file_read (ompio_file_t * fh , void * buf , int count ,
263
263
struct ompi_datatype_t * datatype , ompi_status_public_t * status );
264
264
265
- OMPI_DECLSPEC int mca_common_ompio_file_read_at (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , void * buf ,
265
+ OMPI_DECLSPEC int mca_common_ompio_file_read_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , void * buf ,
266
266
int count , struct ompi_datatype_t * datatype ,
267
267
ompi_status_public_t * status );
268
268
269
- OMPI_DECLSPEC int mca_common_ompio_file_iread (mca_io_ompio_file_t * fh , void * buf , int count ,
269
+ OMPI_DECLSPEC int mca_common_ompio_file_iread (ompio_file_t * fh , void * buf , int count ,
270
270
struct ompi_datatype_t * datatype , ompi_request_t * * request );
271
271
272
- OMPI_DECLSPEC int mca_common_ompio_file_iread_at (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
272
+ OMPI_DECLSPEC int mca_common_ompio_file_iread_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
273
273
void * buf , int count , struct ompi_datatype_t * datatype ,
274
274
ompi_request_t * * request );
275
275
276
- OMPI_DECLSPEC int mca_common_ompio_file_read_at_all (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
276
+ OMPI_DECLSPEC int mca_common_ompio_file_read_at_all (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
277
277
void * buf , int count , struct ompi_datatype_t * datatype ,
278
278
ompi_status_public_t * status );
279
279
280
- OMPI_DECLSPEC int mca_common_ompio_file_iread_at_all (mca_io_ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset ,
280
+ OMPI_DECLSPEC int mca_common_ompio_file_iread_at_all (ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset ,
281
281
void * buf , int count , struct ompi_datatype_t * datatype ,
282
282
ompi_request_t * * request );
283
283
284
284
OMPI_DECLSPEC int mca_common_ompio_file_open (ompi_communicator_t * comm , const char * filename ,
285
285
int amode , opal_info_t * info ,
286
- mca_io_ompio_file_t * ompio_fh , bool use_sharedfp );
286
+ ompio_file_t * ompio_fh , bool use_sharedfp );
287
287
288
288
int mca_common_ompio_file_delete (const char * filename ,
289
289
struct opal_info_t * info );
290
290
291
- OMPI_DECLSPEC int mca_common_ompio_file_close (mca_io_ompio_file_t * ompio_fh );
292
- OMPI_DECLSPEC int mca_common_ompio_file_get_size (mca_io_ompio_file_t * ompio_fh , OMPI_MPI_OFFSET_TYPE * size );
293
- OMPI_DECLSPEC int mca_common_ompio_file_get_position (mca_io_ompio_file_t * fh ,OMPI_MPI_OFFSET_TYPE * offset );
294
- OMPI_DECLSPEC int mca_common_ompio_set_explicit_offset (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset );
295
- OMPI_DECLSPEC int mca_common_ompio_set_file_defaults (mca_io_ompio_file_t * fh );
296
- OMPI_DECLSPEC int mca_common_ompio_set_view (mca_io_ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE disp ,
291
+ OMPI_DECLSPEC int mca_common_ompio_file_close (ompio_file_t * ompio_fh );
292
+ OMPI_DECLSPEC int mca_common_ompio_file_get_size (ompio_file_t * ompio_fh , OMPI_MPI_OFFSET_TYPE * size );
293
+ OMPI_DECLSPEC int mca_common_ompio_file_get_position (ompio_file_t * fh ,OMPI_MPI_OFFSET_TYPE * offset );
294
+ OMPI_DECLSPEC int mca_common_ompio_set_explicit_offset (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset );
295
+ OMPI_DECLSPEC int mca_common_ompio_set_file_defaults (ompio_file_t * fh );
296
+ OMPI_DECLSPEC int mca_common_ompio_set_view (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE disp ,
297
297
ompi_datatype_t * etype , ompi_datatype_t * filetype , const char * datarep ,
298
298
opal_info_t * info );
299
299
@@ -302,14 +302,14 @@ OMPI_DECLSPEC int mca_common_ompio_set_view (mca_io_ompio_file_t *fh, OMPI_MPI_
302
302
* Function that takes in a datatype and buffer, and decodes that datatype
303
303
* into an iovec using the convertor_raw function
304
304
*/
305
- OMPI_DECLSPEC int mca_common_ompio_decode_datatype (struct mca_io_ompio_file_t * fh ,
305
+ OMPI_DECLSPEC int mca_common_ompio_decode_datatype (struct ompio_file_t * fh ,
306
306
struct ompi_datatype_t * datatype ,
307
307
int count ,
308
308
const void * buf ,
309
309
size_t * max_data ,
310
310
struct iovec * * iov ,
311
311
uint32_t * iov_count );
312
312
313
- OMPI_DECLSPEC int mca_common_ompio_set_callbacks (mca_io_ompio_generate_current_file_view_fn_t generate_current_file_view ,
314
- mca_io_ompio_get_mca_parameter_value_fn_t get_mca_parameter_value );
313
+ OMPI_DECLSPEC int mca_common_ompio_set_callbacks (mca_common_ompio_generate_current_file_view_fn_t generate_current_file_view ,
314
+ mca_common_ompio_get_mca_parameter_value_fn_t get_mca_parameter_value );
315
315
#endif /* MCA_COMMON_OMPIO_H */
0 commit comments