15
15
* and Technology (RIST). All rights reserved.
16
16
* Copyright (c) 2018 DataDirect Networks. All rights reserved.
17
17
* Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.
18
+ * Copyright (c) 2024 Triad National Security, LLC. All rights
19
+ * reserved.
18
20
* $COPYRIGHT$
19
21
*
20
22
* Additional copyrights may follow
@@ -249,34 +251,34 @@ typedef struct mca_common_ompio_data_t mca_common_ompio_data_t;
249
251
#include "common_ompio_print_queue.h"
250
252
#include "common_ompio_aggregators.h"
251
253
252
- OMPI_DECLSPEC int mca_common_ompio_file_write (ompio_file_t * fh , const void * buf , int count ,
254
+ OMPI_DECLSPEC int mca_common_ompio_file_write (ompio_file_t * fh , const void * buf , size_t count ,
253
255
struct ompi_datatype_t * datatype ,
254
256
ompi_status_public_t * status );
255
257
256
258
OMPI_DECLSPEC int mca_common_ompio_file_write_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
257
- int count , struct ompi_datatype_t * datatype ,
259
+ size_t count , struct ompi_datatype_t * datatype ,
258
260
ompi_status_public_t * status );
259
261
260
- OMPI_DECLSPEC int mca_common_ompio_file_iwrite (ompio_file_t * fh , const void * buf , int count ,
262
+ OMPI_DECLSPEC int mca_common_ompio_file_iwrite (ompio_file_t * fh , const void * buf , size_t count ,
261
263
struct ompi_datatype_t * datatype , ompi_request_t * * request );
262
264
263
265
OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
264
- const void * buf , int count , struct ompi_datatype_t * datatype ,
266
+ const void * buf , size_t count , struct ompi_datatype_t * datatype ,
265
267
ompi_request_t * * request );
266
268
267
269
OMPI_DECLSPEC int mca_common_ompio_file_write_all (ompio_file_t * fh , const void * buf ,
268
- int count , struct ompi_datatype_t * datatype ,
270
+ size_t count , struct ompi_datatype_t * datatype ,
269
271
ompi_status_public_t * status );
270
272
271
273
OMPI_DECLSPEC int mca_common_ompio_file_write_at_all (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
272
- int count , struct ompi_datatype_t * datatype ,
274
+ size_t count , struct ompi_datatype_t * datatype ,
273
275
ompi_status_public_t * status );
274
276
275
277
OMPI_DECLSPEC int mca_common_ompio_file_iwrite_all (ompio_file_t * fp , const void * buf ,
276
- int count , struct ompi_datatype_t * datatype , ompi_request_t * * request );
278
+ size_t count , struct ompi_datatype_t * datatype , ompi_request_t * * request );
277
279
278
280
OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset , const void * buf ,
279
- int count , struct ompi_datatype_t * datatype , ompi_request_t * * request );
281
+ size_t count , struct ompi_datatype_t * datatype , ompi_request_t * * request );
280
282
281
283
OMPI_DECLSPEC int mca_common_ompio_build_io_array ( ompio_fview_t * fview , int index , int cycles ,
282
284
size_t bytes_per_cycle , size_t max_data , uint32_t iov_count ,
@@ -285,32 +287,32 @@ OMPI_DECLSPEC int mca_common_ompio_build_io_array ( ompio_fview_t *fview, int in
285
287
int * num_io_entries );
286
288
287
289
288
- OMPI_DECLSPEC int mca_common_ompio_file_read (ompio_file_t * fh , void * buf , int count ,
290
+ OMPI_DECLSPEC int mca_common_ompio_file_read (ompio_file_t * fh , void * buf , size_t count ,
289
291
struct ompi_datatype_t * datatype , ompi_status_public_t * status );
290
292
291
293
OMPI_DECLSPEC int mca_common_ompio_file_read_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset , void * buf ,
292
- int count , struct ompi_datatype_t * datatype ,
294
+ size_t count , struct ompi_datatype_t * datatype ,
293
295
ompi_status_public_t * status );
294
296
295
- OMPI_DECLSPEC int mca_common_ompio_file_iread (ompio_file_t * fh , void * buf , int count ,
297
+ OMPI_DECLSPEC int mca_common_ompio_file_iread (ompio_file_t * fh , void * buf , size_t count ,
296
298
struct ompi_datatype_t * datatype , ompi_request_t * * request );
297
299
298
300
OMPI_DECLSPEC int mca_common_ompio_file_iread_at (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
299
- void * buf , int count , struct ompi_datatype_t * datatype ,
301
+ void * buf , size_t count , struct ompi_datatype_t * datatype ,
300
302
ompi_request_t * * request );
301
303
302
- OMPI_DECLSPEC int mca_common_ompio_file_read_all (ompio_file_t * fh , void * buf , int count , struct ompi_datatype_t * datatype ,
304
+ OMPI_DECLSPEC int mca_common_ompio_file_read_all (ompio_file_t * fh , void * buf , size_t count , struct ompi_datatype_t * datatype ,
303
305
ompi_status_public_t * status );
304
306
305
307
OMPI_DECLSPEC int mca_common_ompio_file_read_at_all (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE offset ,
306
- void * buf , int count , struct ompi_datatype_t * datatype ,
308
+ void * buf , size_t count , struct ompi_datatype_t * datatype ,
307
309
ompi_status_public_t * status );
308
310
309
- OMPI_DECLSPEC int mca_common_ompio_file_iread_all (ompio_file_t * fp , void * buf , int count , struct ompi_datatype_t * datatype ,
311
+ OMPI_DECLSPEC int mca_common_ompio_file_iread_all (ompio_file_t * fp , void * buf , size_t count , struct ompi_datatype_t * datatype ,
310
312
ompi_request_t * * request );
311
313
312
314
OMPI_DECLSPEC int mca_common_ompio_file_iread_at_all (ompio_file_t * fp , OMPI_MPI_OFFSET_TYPE offset ,
313
- void * buf , int count , struct ompi_datatype_t * datatype ,
315
+ void * buf , size_t count , struct ompi_datatype_t * datatype ,
314
316
ompi_request_t * * request );
315
317
316
318
OMPI_DECLSPEC int mca_common_ompio_file_open (ompi_communicator_t * comm , const char * filename ,
@@ -330,7 +332,7 @@ OMPI_DECLSPEC int mca_common_ompio_set_file_defaults (ompio_file_t *fh);
330
332
OMPI_DECLSPEC int mca_common_ompio_set_view (ompio_file_t * fh , OMPI_MPI_OFFSET_TYPE disp ,
331
333
ompi_datatype_t * etype , ompi_datatype_t * filetype , const char * datarep ,
332
334
opal_info_t * info );
333
- OMPI_DECLSPEC int mca_common_ompio_base_file_read_all (struct ompio_file_t * fh , void * buf , int count ,
335
+ OMPI_DECLSPEC int mca_common_ompio_base_file_read_all (struct ompio_file_t * fh , void * buf , size_t count ,
334
336
struct ompi_datatype_t * datatype , ompi_status_public_t * status );
335
337
336
338
@@ -341,7 +343,7 @@ OMPI_DECLSPEC int mca_common_ompio_base_file_read_all (struct ompio_file_t *fh,
341
343
*/
342
344
OMPI_DECLSPEC int mca_common_ompio_decode_datatype (struct ompio_file_t * fh ,
343
345
struct ompi_datatype_t * datatype ,
344
- int count ,
346
+ size_t count ,
345
347
const void * buf ,
346
348
size_t * max_data ,
347
349
opal_convertor_t * convertor ,
0 commit comments