Skip to content

Commit dbb873f

Browse files
authored
Merge pull request open-mpi#7047 from edgargabriel/pr/v4.0.x-hdf5-2gb-bug
comomn_ompio_file_read/write: fix 2GB limiting issue
2 parents 55527ab + a3e1ecc commit dbb873f

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
@@ -261,7 +261,7 @@ OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (ompio_file_t *fp, OMPI_MP
261261
int count, struct ompi_datatype_t *datatype, ompi_request_t **request);
262262

263263
OMPI_DECLSPEC int mca_common_ompio_build_io_array ( ompio_file_t *fh, int index, int cycles,
264-
size_t bytes_per_cycle, int max_data, uint32_t iov_count,
264+
size_t bytes_per_cycle, size_t max_data, uint32_t iov_count,
265265
struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw,
266266
size_t *spc );
267267

ompi/mca/common/ompio/common_ompio_file_read.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ int mca_common_ompio_file_iread_at_all (ompio_file_t *fp,
429429
int mca_common_ompio_set_explicit_offset (ompio_file_t *fh,
430430
OMPI_MPI_OFFSET_TYPE offset)
431431
{
432-
int i = 0;
433-
int k = 0;
432+
size_t i = 0;
433+
size_t k = 0;
434434

435435
if ( fh->f_view_size > 0 ) {
436436
/* 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
@@ -409,7 +409,7 @@ int mca_common_ompio_file_iwrite_at_all (ompio_file_t *fp,
409409
/**************************************************************/
410410

411411
int mca_common_ompio_build_io_array ( ompio_file_t *fh, int index, int cycles,
412-
size_t bytes_per_cycle, int max_data, uint32_t iov_count,
412+
size_t bytes_per_cycle, size_t max_data, uint32_t iov_count,
413413
struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw,
414414
size_t *spc)
415415
{

0 commit comments

Comments
 (0)