Skip to content

Commit 3ccfeb6

Browse files
Merge pull request #1449 from ChrisRackauckas-Claude/cc/enable-scc-enzyme-1.12
Enable Enzyme SCC test on Julia 1.11+ (Enzyme 0.13.148)
2 parents 0f23b2f + abc9d72 commit 3ccfeb6

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

test/scc_nonlinearsolve.jl

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,11 @@ p_test = [4.0, 3.0]
7070
@test isapprox(fwd, fd, rtol = 0.05)
7171
end
7272

73-
# Enzyme through Tuple-based SCCNonlinearProblem now works reliably on
74-
# Julia 1.10 (verified across 40+ consecutive runs with the current
75-
# SCCNonlinearSolve, NonlinearSolveBase, and Enzyme releases). On Julia
76-
# 1.11+, Enzyme still hits an `IllegalTypeAnalysisException` on
77-
# `Base._typed_vcat!` inside SCCNonlinearSolve's solution assembly,
78-
# which segfaults the worker process — gate the test on the LTS until
79-
# the upstream Enzyme/NonlinearSolve issues are fixed.
8073
# Vector-based SCC remains unsupported because heterogeneous function
8174
# types get erased to Any. See Enzyme.jl#3021.
8275
@testset "Enzyme" begin
83-
if VERSION < v"1.11"
84-
enz = Enzyme.gradient(Enzyme.Reverse, loss, copy(p_test))
85-
@test isapprox(collect(enz[1]), fd, rtol = 0.05)
86-
else
87-
@test_skip true
88-
end
76+
enz = Enzyme.gradient(Enzyme.Reverse, loss, copy(p_test))
77+
@test isapprox(collect(enz[1]), fd, rtol = 0.05)
8978
end
9079

9180
@testset "Mooncake" begin

0 commit comments

Comments
 (0)