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

Parallel JSON #1475

Merged
merged 10 commits into from
Feb 28, 2024
Merged

Parallel JSON #1475

merged 10 commits into from
Feb 28, 2024

Conversation

franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Jul 10, 2023

Close #1472

TODO:

  • Merge TOML Backend #1436 first
  • openpmd-pipe seems to not work in parallel as it tries reading at some point
  • test with picongpu
  • Documentation

Idea: When using in parallel, just create files simData.json.parallel/rank_0.json, simData.json.parallel/rank_1.json, ... and so on. No direct support for reading, users need to either manually pick one of the JSON files or find some adequate tooling for merging them.

@@ -1269,40 +1339,141 @@
return (*obtainJsonContents(file))[filePosition->id];
}

void JSONIOHandlerImpl::putJsonContents(
auto JSONIOHandlerImpl::putJsonContents(

Check warning

Code scanning / CodeQL

Poorly documented large function Warning

Poorly documented function: fewer than 2% comments for a function of 136 lines.
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ax3l ax3l merged commit d64dbc2 into openPMD:dev Feb 28, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support JSON for parallel I/O
2 participants