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

MatrixFree setup: Reduce cost of vector access pattern computation #15867

Merged
merged 1 commit into from Aug 11, 2023

Conversation

kronbichler
Copy link
Member

With the code introduced by #14343, we would also check the access pattern of unknowns located on faces, by referring to the unknowns on the corresponding cells on either side. However, there is a significant amount of repetition in this step, and it makes more sense to first determine all cells involved on cells and faces, and then check in that list of cells. This reduces the number of instructions for typical DG cases by a factor of 3 in the surrounding function that computes this pattern (or 5-10% of run-time cost in the overall indices setup of MatrixFree), and has the additional benefit of a simpler code.

@tamiko tamiko merged commit 5c5409c into dealii:master Aug 11, 2023
15 checks passed
@kronbichler kronbichler deleted the reduce_number_of_indices branch March 18, 2024 08:31
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

3 participants