-
Notifications
You must be signed in to change notification settings - Fork 200
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
Added support to use adios2's flatten_step #5634
Conversation
To enable it, put it in the openPMD option through input file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, @guj !
I've left few comments, mainly to make clang-tidy
and CodeQL
happy.
Added braces for the if/else loop via Luca Fedeli Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
added const to bool variable via Luca Fedeli Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
eliminate extra space Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
remove commented line via Luca Fedeli Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
Remove commented line via Luca Fedeli Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo spotted by Luca Fedeli Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting & Inline Comments
`buffer` target would not work in BTD if not used with `flattenSteps`: final flush would be missing at the end of the current snapshot write to the stations.
.. code-block:: text | ||
|
||
<diag_name>.openpmd_backend = bp5 | ||
<diag_name>.adios2_engine.parameters.FlattenSteps = on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guj does this only have an effect for variable based encoding or generally (e.g., file based encoding)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but right now flatten steps is only applied to BTD
New Opt-In Feature for BTD
To enable it, put it in the openPMD option through input file:
e.g.
This feature is useful for BTD use case. Data can be flushed after each buffered writes of a snapshot
To check weather this feature is in use, try "bpls -V your_bp_file_name"
Note: we still debug performance regressions in writing when
FlattenSteps
is used. This will be addressed in follow-up updates to ADIOS2/openPMD-api.Bug Fix
Also fixes openPMD/openPMD-api#1655 for BP5 with file-based encoding, i.e., when some ranks have no particles to contribute to a step.