Closed jgreener64 closed 2 months ago
this is amazing. and ironically fixed by https://github.com/EnzymeAD/Enzyme.jl/pull/626 but didn't get merged from lack of test.
@motabbara swap out the test for this and let's merge?
With that fix, we now have:
julia> autodiff(Reverse, f, Active, Duplicated(x, dx))
ERROR: Enzyme execution failed.
Not applying memset on reverse of jl_array_del_end
Stacktrace:
[1] _deleteend!
@ ./array.jl:1023
[2] resize!
@ ./array.jl:1254
[3] filter
@ ./array.jl:2612
Stacktrace:
[1] throwerr(cstr::Cstring)
@ Enzyme.Compiler ~/git/Enzyme.jl/src/compiler.jl:2910
[2] macro expansion
@ ~/git/Enzyme.jl/src/compiler.jl:9514 [inlined]
[3] enzyme_call
@ ~/git/Enzyme.jl/src/compiler.jl:9206 [inlined]
[4] CombinedAdjointThunk
@ ~/git/Enzyme.jl/src/compiler.jl:9169 [inlined]
[5] autodiff(#unused#::EnzymeCore.ReverseMode{false}, f::Const{typeof(f)}, #unused#::Type{Active}, args::Duplicated{Vector{Float64}})
@ Enzyme ~/git/Enzyme.jl/src/Enzyme.jl:205
[6] autodiff(::EnzymeCore.ReverseMode{false}, ::typeof(f), ::Type, ::Duplicated{Vector{Float64}})
@ Enzyme ~/git/Enzyme.jl/src/Enzyme.jl:214
[7] top-level scope
@ REPL[5]:1
This seems fixed on main, closing
I am on Julia 1.8.5 and Enzyme main (https://github.com/EnzymeAD/Enzyme.jl/commit/16818fd3d39d0583915aee38595b54a7fcce6b58). The following fails:
Version info, I get a similar error on Linux: