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

Sliced writing fixes #4887

Conversation

franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Apr 26, 2024

The current implementation of sliced writing re-initializes the components over and over again for each component. For the attributes, that's just duplicate work, but additionally the array sizes get "changed" over and over again (to the same size as before). This might lead to trouble in backends that have restricted support for extensible arrays.

HOWEVER, this PR runs into a bug on the current dev branch of the openPMD-api, probably introduced by openPMD/openPMD-api#1598 and fixed by openPMD/openPMD-api#1615. Will need to do more testing to confirm this. The latest release seems unaffected, but please don't merge just yet.

Apart from this, to workaround another parallel flushing bug that René discovered, I should probably work sth in to make the iteration artificially dirty anyway.

  • see above, find a way to make this all work nicely

@psychocoderHPC psychocoderHPC marked this pull request as draft April 26, 2024 11:44
@psychocoderHPC psychocoderHPC added this to the 0.8.0 / Next stable milestone Apr 26, 2024
@psychocoderHPC psychocoderHPC added bug a bug in the project's code component: plugin in PIConGPU plugin labels Apr 26, 2024
@franzpoeschel
Copy link
Contributor Author

I now added a workaround to forcibly mark the iteration dirty. This ensures that things are flushed when they should.

@franzpoeschel franzpoeschel mentioned this pull request Apr 26, 2024
1 task
psychocoderHPC
psychocoderHPC previously approved these changes Apr 29, 2024
@psychocoderHPC
Copy link
Member

I rebased this PR

@psychocoderHPC psychocoderHPC merged commit 2814768 into ComputationalRadiationPhysics:dev Apr 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in the project's code component: plugin in PIConGPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants