-
Notifications
You must be signed in to change notification settings - Fork 16
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
Performance issue with mixed mode Jacobian #684
Comments
First, the good news: Enzyme performing well seems to indicate that the sparse autodiff pipeline is not the bottleneck for your specific use case. A few things about benchmarking though: at the moment, random ordering is more performant because of limitations on the SparseMatrixColorings side, which I hope to solve in the coming weeks. But just because you set the seed at the beginning doesn't mean the RNG will always be seeded the same way. See gdalle/SparseMatrixColorings.jl#160, which I'll try to fix today. |
OK, so the mixed mode is best suited for Enzyme.jl for now. Another related question, IIUC, since the |
The sparsity pattern that gets used is the one detected by the |
In the performance comparison between forward, reverse, and mixed mode Jacobian, when we are using Enzyme as the backend, the result is quite satisfying:
however, if we use ForwardDiff.jl and ReverseDiff.jl, the difference is not that significant compared with only using ForwardDiff.jl:
So is the advantage of mixed mode Jacobian only available on Enzyme?
The text was updated successfully, but these errors were encountered: