Enable Enzyme tests in steady_state.jl on Julia 1.12+ (Enzyme 0.13.148)#1450
Merged
ChrisRackauckas merged 1 commit intoMay 21, 2026
Merged
Conversation
Enzyme 0.13.148 closes the NonlinearProblem GC invariant (EnzymeAD/Enzyme.jl#3012) and SCCNonlinearProblem (EnzymeAD/Enzyme.jl#3026) issues that previously gated these. Verified on Julia 1.12.6: all `enzyme_gradient` blocks pass (NewtonRaphson / TrustRegion / Klement, iip and oop) and the `SteadyStateAdjoint(autojacvec = EnzymeVJP())` paths through `adjoint_sensitivities` return the correct gradients. Full file: 63 Pass / 1 Broken (the broken is a pre-existing `@test_skip` for `enzyme_gradient2` over `ZygoteVJP`, which is a separate "Enzyme can't differentiate through Zygote" limitation). Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ignore until reviewed by @ChrisRackauckas.
Summary
test/steady_state.jlhadENZYME_AVAILABLEset tofalseon Julia 1.12+ because of NonlinearProblem + Enzyme segfaults / GC invariant violations on 1.12. Enzyme 0.13.148 (released 2026-05-21) closes:With those fixed,
using EnzymeandENZYME_AVAILABLE = truecan be unconditional. The Zygote-vs-Mooncake split forcompute_gradientis kept (separate concern: Zygote 0.7 has issues on 1.12).Verification
Locally on Julia 1.12.6 + Enzyme 0.13.148:
enzyme_gradientcases (NewtonRaphson/TrustRegion/Klement, iip+oop)SteadyStateAdjoint(autojacvec = EnzymeVJP())throughadjoint_sensitivities(res1h, res2h, res3h)The 1 Broken is
@test_skip falseforenzyme_gradient2overZygoteVJP— pre-existing, unrelated (Enzyme can't differentiate through Zygote's compiled code regardless of Julia version).Refs
Test plan
test/steady_state.jlon Julia 1.12.6: 63 Pass / 1 Broken