Skip to content

Commit ea7e1ea

Browse files
authored
Merge pull request #7046 from edgargabriel/pr/hdf5-2gb-bug
comomn_ompio_file_read/write: fix 2GB limiting issue
2 parents a49ae7f + a130f56 commit ea7e1ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ompi/mca/common/ompio/common_ompio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (ompio_file_t *fp, OMPI_MP
269269
int count, struct ompi_datatype_t *datatype, ompi_request_t **request);
270270

271271
OMPI_DECLSPEC int mca_common_ompio_build_io_array ( ompio_file_t *fh, int index, int cycles,
272-
size_t bytes_per_cycle, int max_data, uint32_t iov_count,
272+
size_t bytes_per_cycle, size_t max_data, uint32_t iov_count,
273273
struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw,
274274
size_t *spc, mca_common_ompio_io_array_t **io_array,
275275
int *num_io_entries );

ompi/mca/common/ompio/common_ompio_file_read.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ int mca_common_ompio_file_iread_at_all (ompio_file_t *fp,
533533
int mca_common_ompio_set_explicit_offset (ompio_file_t *fh,
534534
OMPI_MPI_OFFSET_TYPE offset)
535535
{
536-
int i = 0;
537-
int k = 0;
536+
size_t i = 0;
537+
size_t k = 0;
538538

539539
if ( fh->f_view_size > 0 ) {
540540
/* starting offset of the current copy of the filew view */

ompi/mca/common/ompio/common_ompio_file_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ int mca_common_ompio_file_iwrite_at_all (ompio_file_t *fp,
511511
/**************************************************************/
512512

513513
int mca_common_ompio_build_io_array ( ompio_file_t *fh, int index, int cycles,
514-
size_t bytes_per_cycle, int max_data, uint32_t iov_count,
514+
size_t bytes_per_cycle, size_t max_data, uint32_t iov_count,
515515
struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw,
516516
size_t *spc, mca_common_ompio_io_array_t **io_array,
517517
int *num_io_entries)

0 commit comments

Comments
 (0)