Skip to content
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 HDF5 write WINDOWS when running in parallel #130

Merged
merged 1 commit into from
May 25, 2022
Merged

Conversation

houjun
Copy link
Collaborator

@houjun houjun commented May 25, 2022

The existing code will run into issues when running sw4mopt in parallel writing the WINDOWS attribute, each rank needs to check whether the attribute exist or not and then either create or open it, and there should only be one rank writing to the file at a time (otherwise file will get corrupted with concurrent file modification), so a barrier is needed before each write.

@houjun houjun requested a review from wliuphd May 25, 2022 00:00
@houjun houjun requested review from bjorn2 and wliuphd May 25, 2022 00:20
@andersp andersp merged commit e11b9d9 into developer May 25, 2022
@houjun houjun deleted the hdf5fix branch May 25, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants