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

Added boost and Utilities serialization to cellid benchmark. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcfehling
Copy link
Member

Added serialization variants as proposed in dealii/dealii#11446. Applied clang-format on the source file.


This test now packs and unpacks every CellId one by one. It would also be interesting if we pack a whole set of CellIds into one buffer, and extract them from it.

However the critical use case in parallel applications is to pack cell-related data for transfer, which the current state of this test corresponds to. So it would be reasonable to keep this check as it is, with the two additional options as proposed in this PR.

What do you think?

const auto cell2 = tr.create_cell_iterator(cid2);
#else
const auto cell2 = cid2.to_cell(tr);
#endif
c += cell2->index();
}
std::cout << c << std::endl;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this value c? Is it some kind of 'checksum'?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are compiling with optimizations. I was worried that the compiler would just optimize all of it away otherwise.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I did not check that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I understand. I'll add a comment.

cell_id/main.cc Outdated
@@ -54,24 +56,25 @@ void check (Triangulation<dim> &tr)
CellId cid2;
cidstream >> cid2;

typename Triangulation<dim>::cell_iterator cell2 = cid2.to_cell(tr);

#if DEAL_II_VERSION_GTE(9, 4, 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below: do you mean 9.3?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We introduced this new function during development of version 9.3.

Not all commits since the release of version 9.2 include this function, so with the (9,3,0) check this code would not compile on earlier commits.

Reading the README, I assume you want to run this benchmark on certain commits, and not only releases. I thought it would be safer to ask for a future release here, since the deprecated function still exists and does not do anything different. Using version 9.3.1 should also be possible here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants