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

Draft: attribute_writing_ranks in HDf5 #1581

Closed

Conversation

franzpoeschel
Copy link
Contributor

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.

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 franzpoeschel force-pushed the hdf5-attribute-writing-ranks branch from de36847 to 5086434 Compare December 22, 2023 18:30
@franzpoeschel franzpoeschel force-pushed the hdf5-attribute-writing-ranks branch from 5086434 to 86e5cc8 Compare January 23, 2024 16:39
@franzpoeschel franzpoeschel force-pushed the hdf5-attribute-writing-ranks branch from 86e5cc8 to cc20b48 Compare February 5, 2024 14:48
@franzpoeschel franzpoeschel force-pushed the hdf5-attribute-writing-ranks branch from cc20b48 to df81453 Compare February 14, 2024 10:17
@franzpoeschel franzpoeschel force-pushed the hdf5-attribute-writing-ranks branch 3 times, most recently from 7222f20 to d8ba9a2 Compare February 29, 2024 12:41
@franzpoeschel
Copy link
Contributor Author

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant