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
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.

None yet

1 participant