-
Notifications
You must be signed in to change notification settings - Fork 146
Fix BP5 cross-endian support for big-endian architectures (s390x) #4803
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
Open
eisenhauer
wants to merge
7
commits into
ornladios:master
Choose a base branch
from
eisenhauer:fix-bp5-cross-endian
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
Bumps the all-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 4.31.9 to 4.31.10 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@5d4e8d1...cdefb33) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.31.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions ... Signed-off-by: dependabot[bot] <[email protected]>
269938b to
ba73f6e
Compare
This fixes BP5 files written on big-endian architectures (like s390x) to be
readable on little-endian architectures (like x86) and vice versa.
Key fixes:
1. BP5Helper.cpp: Fix MetaMetaInfo buffer reversal on big-endian systems
- helper::ReadArray() defaults isLittleEndian=true, which caused
ReverseCopyFromBuffer to be called incorrectly on big-endian systems
- Changed to helper::CopyFromBuffer() since data comes from MPI
communication within the same architecture (native endian format)
- This was the root cause of FFS format descriptors being reversed
2. BP5Deserializer: Add proper endianness tracking and byte-swapping
- Track source and reader endianness via m_SourceIsLittleEndian and
m_ReaderIsLittleEndian members
- Add byte-swapping for primitive attributes when reading cross-endian
- Fix complex number handling by halving element size and doubling
the fastest-changing dimension, so NdCopy swaps real/imag separately
- Pass endianness flags to NdCopy operations
3. BP5Reader.cpp: Pass endianness info from Minifooter to BP5Deserializer
4. CMakeLists.txt: Change Endian_Reverse default from AUTO to ON
5. Add s390x test archives for cross-endian compatibility testing
Tested with BP5 files written on s390x (big-endian) and read on x86
(little-endian).
Co-Authored-By: Claude Opus 4.5 <[email protected]>
ba73f6e to
ca8b388
Compare
…tions/all-actions-e42aeb3dac build(deps): bump github/codeql-action from 4.31.9 to 4.31.10 in the all-actions group
This fixes BP5 files written on big-endian architectures (like s390x) to be
readable on little-endian architectures (like x86) and vice versa.
Key fixes:
1. BP5Helper.cpp: Fix MetaMetaInfo buffer reversal on big-endian systems
- helper::ReadArray() defaults isLittleEndian=true, which caused
ReverseCopyFromBuffer to be called incorrectly on big-endian systems
- Changed to helper::CopyFromBuffer() since data comes from MPI
communication within the same architecture (native endian format)
- This was the root cause of FFS format descriptors being reversed
2. BP5Deserializer: Add proper endianness tracking and byte-swapping
- Track source and reader endianness via m_SourceIsLittleEndian and
m_ReaderIsLittleEndian members
- Add byte-swapping for primitive attributes when reading cross-endian
- Fix complex number handling by halving element size and doubling
the fastest-changing dimension, so NdCopy swaps real/imag separately
- Pass endianness flags to NdCopy operations
3. BP5Reader.cpp: Pass endianness info from Minifooter to BP5Deserializer
4. CMakeLists.txt: Change Endian_Reverse default from AUTO to ON
5. Add s390x test archives for cross-endian compatibility testing
Tested with BP5 files written on s390x (big-endian) and read on x86
(little-endian).
Co-Authored-By: Claude Opus 4.5 <[email protected]>
…ADIOS2 into fix-bp5-cross-endian * 'fix-bp5-cross-endian' of https://github.com/eisenhauer/ADIOS2: Fix BP5 cross-endian support for big-endian architectures (s390x)
…upport Cross-endian file interoperability is now unconditionally enabled. This simplifies the build configuration and ensures files written on big-endian systems can always be read on little-endian systems and vice versa. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This fixes BP5 files written on big-endian architectures (like s390x) to be readable on little-endian architectures (like x86) and vice versa.
Tested with BP5 files written on s390x (big-endian) and read on x86 (little-endian).