-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use better colorings #246
Comments
Apparently the lines to modify are ADNLPModels.jl/src/sparse_hessian.jl Lines 208 to 216 in 855c487
I can cook up a PR this weekend |
It will be fantastic Guillaume! |
I have taken a look and it's not possible with the current state of the code, because you interleave differentiation and decompression: evaluate the matrix-vector product for one color, dispatch into the relevant columns, rinse and repeat. |
Should we start to switch to DI.jl? |
Do you have benchmarks to monitor possible performance regressions? I can't guarantee that DI will be everywhere as good as hand-tuned code that works for a specific backend |
As of #244, column coloring is used everywhere, for Jacobians and Hessians alike. However:
SparseMatrixColorings.jl also provides decompression utilities, which you may want to use for column and star coloring instead of recoding them.
Of course my recommendation is to use DifferentiationInterface.jl and stop worrying about all of that
The text was updated successfully, but these errors were encountered: