-
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
Draft: attribute_writing_ranks in HDf5 #1581
Closed
franzpoeschel
wants to merge
3
commits into
openPMD:dev
from
franzpoeschel:hdf5-attribute-writing-ranks
Closed
Draft: attribute_writing_ranks in HDf5 #1581
franzpoeschel
wants to merge
3
commits into
openPMD:dev
from
franzpoeschel:hdf5-attribute-writing-ranks
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comment on lines
+1592
to
+1733
// std::cout << "Writing attribute " << parameters.name | ||
// << ", filling it with value "; | ||
// std::visit( | ||
// [](auto const &val) { | ||
// using T = | ||
// std::remove_cv_t<std::remove_reference_t<decltype(val)>>; | ||
// if constexpr ( | ||
// !auxiliary::IsVector_v<T> && !auxiliary::IsArray_v<T>) | ||
// { | ||
// std::cout << val; | ||
// } else | ||
// { | ||
// std::cout << "VECTOR/ARRAY"; | ||
// } | ||
// }, | ||
// att.getResource()); | ||
// std::cout << std::endl; |
Check notice
Code scanning / CodeQL
Commented-out code Note
This comment appears to contain commented-out code.
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
from
December 22, 2023 18:30
de36847
to
5086434
Compare
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
from
January 23, 2024 16:39
5086434
to
86e5cc8
Compare
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
from
February 5, 2024 14:48
86e5cc8
to
cc20b48
Compare
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
from
February 14, 2024 10:17
cc20b48
to
df81453
Compare
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
3 times, most recently
from
February 29, 2024 12:41
7222f20
to
d8ba9a2
Compare
New concept: global options with backend-specific implementation
franzpoeschel
force-pushed
the
hdf5-attribute-writing-ranks
branch
from
March 26, 2024 11:49
d8ba9a2
to
d04c16d
Compare
This does not work in the intended way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #1542, this draft PR tries to implement that same feature for HDF5, too.
This is API-breaking, but only on the dev, since it turns
attribute_writing_ranks
into a global JSON option.The results are a bit weird, since there always seems to be one rank from which HDF5 takes the attribute definitions. In my tests, when running with 14 ranks, this is always rank 12; when running with 28 ranks, it's always rank 25. This might mean that the current approach will not work.