-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove recompile_invalidations #450
Conversation
`@recompile_invalidations` should only be used in very specific scenarios, and this is not one of those scenarios. Also, there are big changes being done with https://github.com/SciML/CommonWorldInvalidations.jl. With that, we only need to `@recompile_invalidations` on a few entry points. In particular, Static.jl, Symbolics.jl, and preferably ForwardDiff.jl and StaticArrays.jl would adopt it too. But this means that in order to handle all of this effectively, in SciML we only need to apply it on Static.jl, Symbolics.jl, and SciMLBase.jl and the whole ecosystem should be fine. In any case, this library doesn't need it. It shouldn't make a tangible difference in compile times, while it increases precompile times by a lot.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/NonlinearSolve.jl
Outdated
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff, | ||
AutoSparsePolyesterForwardDiff, AutoSparseZygote |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff, | |
AutoSparsePolyesterForwardDiff, AutoSparseZygote | |
using ADTypes: AutoSparseFiniteDiff, AutoSparseForwardDiff, AutoSparsePolyesterForwardDiff, | |
AutoSparseZygote |
src/NonlinearSolve.jl
Outdated
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | ||
istril, istriu, lu, mul!, norm, pinv, tril!, triu! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | |
istril, istriu, lu, mul!, norm, pinv, tril!, triu! | |
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril, | |
istriu, lu, mul!, norm, pinv, tril!, triu! |
src/NonlinearSolve.jl
Outdated
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, | ||
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac, | ||
num_vecjac!, sparse_jacobian, sparse_jacobian!, | ||
sparse_jacobian_cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, | |
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac, | |
num_vecjac!, sparse_jacobian, sparse_jacobian!, | |
sparse_jacobian_cache | |
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, auto_vecjac, | |
init_jacobian, num_jacvec, num_jacvec!, num_vecjac, num_vecjac!, | |
sparse_jacobian, sparse_jacobian!, sparse_jacobian_cache |
src/NonlinearSolve.jl
Outdated
symbolic_container, parameter_values, state_values, | ||
getu, setu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
symbolic_container, parameter_values, state_values, | |
getu, setu | |
symbolic_container, parameter_values, state_values, getu, | |
setu |
src/NonlinearSolve.jl
Outdated
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | ||
istril, istriu, lu, mul!, norm, pinv, tril!, triu! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | |
istril, istriu, lu, mul!, norm, pinv, tril!, triu! | |
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril, | |
istriu, lu, mul!, norm, pinv, tril!, triu! |
src/NonlinearSolve.jl
Outdated
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, | ||
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac, | ||
num_vecjac!, sparse_jacobian, sparse_jacobian!, | ||
sparse_jacobian_cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, | |
auto_vecjac, init_jacobian, num_jacvec, num_jacvec!, num_vecjac, | |
num_vecjac!, sparse_jacobian, sparse_jacobian!, | |
sparse_jacobian_cache | |
SymbolicsSparsityDetection, auto_jacvec, auto_jacvec!, auto_vecjac, | |
init_jacobian, num_jacvec, num_jacvec!, num_vecjac, num_vecjac!, | |
sparse_jacobian, sparse_jacobian!, sparse_jacobian_cache |
src/NonlinearSolve.jl
Outdated
symbolic_container, parameter_values, state_values, | ||
getu, setu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
symbolic_container, parameter_values, state_values, | |
getu, setu | |
symbolic_container, parameter_values, state_values, getu, | |
setu |
src/NonlinearSolve.jl
Outdated
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | ||
istril, istriu, lu, mul!, norm, pinv, tril!, triu! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, | |
istril, istriu, lu, mul!, norm, pinv, tril!, triu! | |
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril, | |
istriu, lu, mul!, norm, pinv, tril!, triu! |
src/NonlinearSolve.jl
Outdated
symbolic_container, parameter_values, state_values, | ||
getu, setu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
symbolic_container, parameter_values, state_values, | |
getu, setu | |
symbolic_container, parameter_values, state_values, getu, | |
setu |
src/NonlinearSolve.jl
Outdated
symbolic_container, parameter_values, state_values, | ||
getu, setu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
symbolic_container, parameter_values, state_values, | |
getu, setu | |
symbolic_container, parameter_values, state_values, getu, | |
setu |
@recompile_invalidations
should only be used in very specific scenarios, and this is not one of those scenarios. Also, there are big changes being done with https://github.com/SciML/CommonWorldInvalidations.jl. With that, we only need to@recompile_invalidations
on a few entry points. In particular, Static.jl, Symbolics.jl, and preferably ForwardDiff.jl and StaticArrays.jl would adopt it too. But this means that in order to handle all of this effectively, in SciML we only need to apply it on Static.jl, Symbolics.jl, and SciMLBase.jl and the whole ecosystem should be fine.In any case, this library doesn't need it. It shouldn't make a tangible difference in compile times, while it increases precompile times by a lot.