-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support JSON for parallel I/O #1472
Comments
Are you asking for JSON support when running with a single MPI rank? This could be added relatively easily. The backend would then simply fail when detecting that the MPI size is greater than 1. There is on purpose currently no support for MPI-based JSON, since it is unclear what that should do and the "good" options would require an implementation effort orders of magnitudes larger than the merit. Relatively easy options:
|
I am looking for test output, i.e. I want to produce a small amount of output to test the I/O mechanism in the Einstein Toolkit. You could assume a small (but non-trivial) number of MPI processes and a small amount of data to be written. If this only works for a single MPI rank then this would be less useful. In this case I'm probably mostly looking for a better error message. |
Writing from multiple ranks to a single JSON file would imply having to implement a parallel data aggregation mechanism from scratch just for JSON. The openPMD-api does so far not do any metadata nor data aggregation, but defers this task to HDF5 and ADIOS.
|
Yes, this would be useful. |
Ok, I'll try to find some time to add this. Note: You might be interested in PR #1277, too. It combines several things which I will try merging as multiple PRs in the coming time:
|
This PR implements the above suggestion. It's based on the TOML PR described above to avoid merge conflicts. |
It seems that parallel (MPI) I/O does not support the JSON format. I'd like to use that format for debugging.
The function
createIOHandler
, when called with an MPI communicator, does not accept theJSON
format. This is with the currentdev
branch.The text was updated successfully, but these errors were encountered: