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

Revise vector operations in SolverIDR to improve performance #14256

Merged
merged 3 commits into from Sep 14, 2022

Conversation

kronbichler
Copy link
Member

No description provided.

{
double beta = phi(k) / M(k, k);
r.add(-1.0 * beta, G[k]);
const double beta = phi(k) / M(k, k);
Copy link
Member

Choose a reason for hiding this comment

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

double?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you want me to use VectorType::value_type like in the other PR? I can do that, if you agree with changing the matrix types and all other stuff currently in double variables, such as this one here:

Vector<double> phik(s - k);
FullMatrix<double> Mk(s - k, s - k);

Or are you suggesting something else?

Copy link
Member

Choose a reason for hiding this comment

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

Do you want me to use VectorType::value_type like in the other PR? I can do that, if you agree with changing the matrix types and all other stuff currently in double variables, such as this one here:

Yes, sounds reasonable 👍

Copy link
Member

@tjhei tjhei left a comment

Choose a reason for hiding this comment

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

Very nice. Getting rid of some of the temporaries/reductions might be visible even for situations where the preconditioner is expensive...

@peterrum peterrum merged commit 4b47bb8 into dealii:master Sep 14, 2022
@kronbichler kronbichler deleted the improve_idr branch August 10, 2023 16:41
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