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

Weight kernel for multigrid: Simplify aliasing analysis for compiler #15185

Merged
merged 1 commit into from May 8, 2023

Conversation

kronbichler
Copy link
Member

This small change simplifies the analysis of the compiler whether two arrays overlap (alias): We know that the weight is constant throughout the loop, so move them to a separate variable. This helps the additive Schwarz-type smoothers of https://github.com/peterrum/dealii-dd-and-schwarz as well as the multigrid transfer. This is a very minor change for the case the L1 access is the limiting factor.

Copy link
Member

@tamiko tamiko left a comment

Choose a reason for hiding this comment

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

Sometimes I am just genuinely scared of optimizing compilers.

@masterleinad masterleinad merged commit 74b8ea7 into dealii:master May 8, 2023
14 checks passed
@kronbichler kronbichler deleted the avoid_load branch May 8, 2023 17:08
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

4 participants