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

Tensor product kernels: specialize a function for complex numbers #16754

Merged
merged 2 commits into from Mar 16, 2024

Conversation

kronbichler
Copy link
Member

I realized that the code generated by compilers for the matrix-free tensor product kernels when used for complex numbers is rather poor, because it will not exploit fused multiply-add functions in the inner reduction loops and thus performs unnecessary work. This is easy to fix, especially with if constexpr facilities: We write the code in a way that lets the compiler straight-forwardly use FMA operations on both the real and imaginary part.

@kronbichler kronbichler merged commit 4ca6ffc into dealii:master Mar 16, 2024
16 checks passed
@kronbichler kronbichler deleted the fix_complex_numbers branch March 18, 2024 08:29
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

2 participants