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.

@franzpoeschel franzpoeschel force-pushed the parallel-json branch 2 times, most recently from 1d8dbdb to c42b8db Compare July 25, 2023 14:05
@ax3l ax3l self-requested a review July 25, 2023 17:53
@ax3l ax3l self-assigned this Jul 25, 2023
@franzpoeschel franzpoeschel force-pushed the parallel-json branch 2 times, most recently from 926c146 to c1d9bb3 Compare August 10, 2023 09:38
@franzpoeschel franzpoeschel force-pushed the parallel-json branch 2 times, most recently from 334bda1 to ea497a0 Compare November 20, 2023 16:28
@@ -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 161 lines.
@franzpoeschel franzpoeschel force-pushed the parallel-json branch 2 times, most recently from 308b6a1 to 8e7953c Compare November 27, 2023 09:48
@franzpoeschel franzpoeschel force-pushed the parallel-json branch 3 times, most recently from fbb3ea5 to 38fd114 Compare December 22, 2023 18:32
@franzpoeschel franzpoeschel force-pushed the parallel-json branch 2 times, most recently from a564618 to 9f0bb83 Compare February 5, 2024 14:57
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