Enable Enzyme SCC test on Julia 1.11+ (Enzyme 0.13.148)#1449
Merged
ChrisRackauckas merged 1 commit intoMay 21, 2026
Merged
Conversation
The IllegalTypeAnalysisException / SCCNonlinearProblem segfault that gated this test on `VERSION < v"1.11"` is fixed in Enzyme 0.13.148 (closes EnzymeAD/Enzyme.jl#3026). Verified `Enzyme.gradient` over the SCC loss returns the correct gradient on Julia 1.12.6. Leaves the comment about the vector-based SCC heterogeneous-function limitation (Enzyme.jl#3021) since that's a separate API question, not a Julia-version issue. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
3 tasks
4 tasks
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/scc_nonlinearsolve.jl'sEnzymetestset was gated onVERSION < v"1.11"because of anIllegalTypeAnalysisException/ SCCNonlinearProblem-worker segfault on Julia 1.11+. Enzyme 0.13.148 (released 2026-05-21) closes EnzymeAD/Enzyme.jl#3026 which fixes it.Locally verified on Julia 1.12.6 + Enzyme 0.13.148:
Enzyme.gradientover the Tuple-based SCC loss returns the correct gradient (matches FiniteDiff to 5% as the existingrtolexpects). Full file: 8/8 passing (was 7 Pass / 1 Broken).Refs
Test plan
test/scc_nonlinearsolve.jlpasses 8/8 on Julia 1.12.6 locally