-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix H5FD_mpio_Debug="rw" can report MPI_count instead of bytes #699
Merged
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b67893f
fixed missed closing of a dataset
brtnfld e5b8c8b
fixed missed closing of a dataset
brtnfld e0e0163
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld 268638f
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld c20acc1
fixed typo in error return
brtnfld a920bdc
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld 91d6bcb
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld 0550cbb
Committing clang-format changes
github-actions[bot] 8a42502
minor edits
brtnfld 5a85e97
Merge branch 'develop' of https://github.com/brtnfld/hdf5 into develop
brtnfld ee3f29f
code format
brtnfld 50f0b26
Committing clang-format changes
github-actions[bot] d2d7386
code format
brtnfld b94a0fa
Merge branch 'develop' of https://github.com/brtnfld/hdf5 into develop
brtnfld 8bd1e8e
minor edit
brtnfld c9c62ed
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld 9c7f8d2
Merge remote-tracking branch 'upstream/develop' into develop
brtnfld 00a88df
switched from using MPI_count, to actual bytes written for H5FD_mpio_…
brtnfld 7c22adb
Committing clang-format changes
github-actions[bot] 5cd709f
changed size_i in printf to reflect the I/O.
brtnfld 08204c4
Merge branch 'develop' of https://github.com/brtnfld/hdf5 into develop
brtnfld 64909d1
Committing clang-format changes
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1195,12 +1195,6 @@ H5FD__mpio_read(H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type, hid_t H5_ATTR_UNU | |
if ((hsize_t)size_i != size) | ||
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from size to size_i") | ||
|
||
#ifdef H5FDmpio_DEBUG | ||
if (H5FD_mpio_debug_r_flag) | ||
HDfprintf(stderr, "%s: (%d) mpi_off = %ld size_i = %d\n", FUNC, file->mpi_rank, (long)mpi_off, | ||
size_i); | ||
#endif | ||
|
||
/* Only look for MPI views for raw data transfers */ | ||
if (type == H5FD_MEM_DRAW) { | ||
H5FD_mpio_xfer_t xfer_mode; /* I/O transfer mode */ | ||
|
@@ -1349,6 +1343,12 @@ H5FD__mpio_read(H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type, hid_t H5_ATTR_UNU | |
if (bytes_read < 0 || bytes_read > io_size) | ||
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "file read failed") | ||
|
||
#ifdef H5FDmpio_DEBUG | ||
if (H5FD_mpio_debug_r_flag) | ||
HDfprintf(stderr, "%s: (%d) mpi_off = %ld size_i = %lld\n", FUNC, file->mpi_rank, (long)mpi_off, | ||
bytes_read); | ||
#endif | ||
|
||
/* | ||
* This gives us zeroes beyond end of physical MPI file. | ||
*/ | ||
|
@@ -1436,12 +1436,6 @@ H5FD__mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, h | |
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from haddr to MPI off") | ||
size_i = (int)size; | ||
|
||
#ifdef H5FDmpio_DEBUG | ||
if (H5FD_mpio_debug_w_flag) | ||
HDfprintf(stderr, "%s: (%d) mpi_off = %ld size_i = %d\n", FUNC, file->mpi_rank, (long)mpi_off, | ||
size_i); | ||
#endif | ||
|
||
/* Get the transfer mode from the API context */ | ||
if (H5CX_get_io_xfer_mode(&xfer_mode) < 0) | ||
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "can't get MPI-I/O transfer mode") | ||
|
@@ -1566,6 +1560,12 @@ H5FD__mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, h | |
if (bytes_written != io_size || bytes_written < 0) | ||
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "file write failed") | ||
|
||
#ifdef H5FDmpio_DEBUG | ||
if (H5FD_mpio_debug_w_flag) | ||
HDfprintf(stderr, "%s: (%d) mpi_off = %ld size_i = %lld\n", FUNC, file->mpi_rank, (long)mpi_off, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you switch the printf string to say 'bytes_written' instead of 'size_t' now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
bytes_written); | ||
#endif | ||
|
||
/* Each process will keep track of its perceived EOF value locally, and | ||
* ultimately we will reduce this value to the maximum amongst all | ||
* processes, but until then keep the actual eof at HADDR_UNDEF just in | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you switch the printf string to say 'bytes_read' instead of 'size_t' now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would make my post-processing easier. Hopefully, not too many users depend on it being "size_i" for their scripts. Switched.