You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enzyme_jll 0.0.302 segfaults native reverse gradients on Julia 1.10 (excluded through compat until a fixed binary ships) #46
Enzyme_jll 0.0.302, which Enzyme 0.13.211 requires, segfaults native AutoEnzyme(mode = Enzyme.Reverse) gradients on Julia 1.10 whenever a
differentiated function returns a freshly allocated array, for example an
index gather in a per-cell @plate likelihood. Enzyme 0.13.210 / Enzyme_jll 0.0.301 computes the correct gradients. Julia 1.12 and 1.13 are
not affected.
The example-packages CI job on main fails with Package ReactiveKernelsPPL errored during testing (received signal: 11) in the eight-schools gradient
testset (packages/ReactiveKernelsPPL/test/test_generator.jl). Run
37459391494 on 5692477f.
Native gradients of BayesianRegressionModels grouped-effect models crash the
same way.
using StaticArrays, Enzyme
const P =SVector(-0.5, 0.2, 0.9, -1.3)
f = y ->collect(SVector{4,Float64}(
y[1]*P[1] - y[2]*P[2] - y[3]*P[3] - y[4]*P[4],
y[1]*P[2] + y[2]*P[1] + y[3]*P[4] - y[4]*P[3],
y[1]*P[3] - y[2]*P[4] + y[3]*P[1] + y[4]*P[2],
y[1]*P[4] + y[2]*P[3] - y[3]*P[2] + y[4]*P[1]))
g =let f = f
y ->f(y)[1]
end
Enzyme.gradient(Reverse, g, [1.2, -0.7, 0.5, 0.3])
Upstream reports that Julia 1.10.12 with Enzyme 0.13.211 crashes with signal (11), and that Enzyme 0.13.210 returns ([-0.5, -0.2, -0.9, 1.3],). On gordito, Julia 1.10.12, the ReactiveKernelsPPL eight-schools gradient segfaults in _unsafe_getindex inside diffejulia__ADKernelCall with Enzyme 0.13.211 / Enzyme_jll 0.0.302. With Enzyme 0.13.210 / 0.0.301 it matches central differences to 8e-10.
What ReactiveKernels does now
Since ebe13e40 (merged to main as 5652a556), the root Project.toml declares Enzyme_jll as a weak dependency used only
for compat, with Enzyme_jll = "0.0.0 - 0.0.301, 0.0.303 - 0.0". Every
environment that contains ReactiveKernels therefore resolves Enzyme 0.13.210
today and admits the next binary without another edit. test/test_package_boundary.jl keeps the exclusion in place, and reactivekernels-use §7ah documents it for consumers, including how an environment that already holds 0.0.302 moves off it.
Activity