-
Notifications
You must be signed in to change notification settings - Fork 55
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
Preallocate workspace for solvers #264
Comments
Speak of the devil ! We were talking about it this afternoon with Geoffroy. |
😈 |
I have something in mind, I will open a pull request when it's ready. It should not break GPU support, which a little bit tricky. |
@geoffroyleconte
where Like Dominique proposed you can create a function like that after :
In
You only need to update the initialization of the variables and add a check to verify that |
fixed by #271 |
Krylov methods
For MINRES, this could take the form (not tested)
The objective is for
minres!()
to not allocate at all. We could also defineand pass an instance of
MinresSolver
around.@amontoison @geoffroyleconte
The text was updated successfully, but these errors were encountered: