William Moses
William Moses
Your error looks quite similar to the one resolved here: https://github.com/wsmoses/Enzyme.jl/pull/184 Once that lands, mind trying it again?
@dom-linkevicius can you retry on current Enzyme
@dom-linkevicius closing for now, reopen if the error persists.
Yeah this is not related to any memory allocation, but an analysis pass that preprocesses the code found an inconsistent state. Unfortunately this will be difficult to analyze without the...
Can you actually add both Enzyme.API.printtype!(true) and Enzyme.API.print!(true) ?
``` after simplification : define [2 x double] @preprocess_julia_ComposedFunction_8386([2 x double] %0, {} addrspace(10)* nonnull align 16 dereferenceable(40) %1) local_unnamed_addr #3 !dbg !411 { entry: %malloccall = tail call noalias...
Error is now coming from Julia's GC pass ``` julia: /buildworker/worker/package_linux64/build/src/llvm-late-gc-lowering.cpp:1463: State LateLowerGCFrame::LocalScan(llvm::Function&): Assertion `SRet' failed. signal (6): Aborted in expression starting at REPL[11]:1 gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort...
This particular issue is now a case of: https://github.com/EnzymeAD/Enzyme.jl/issues/337
Now reduced to a generic GC runtime error (but compiles successfully): ``` GC error (probable corruption) : Allocations: 69053306 (Pool: 69024596; Big: 28710); GC: 77 Array{Float64, (10,)}[0.0708804, 0.420144, 0.516531, 0.895988,...
The particular bug: ``` ERROR: UndefRefError: access to undefined reference Stacktrace: [1] unsafe_convert @ ~/.julia/packages/Enzyme/di3zM/src/compiler.jl:4277 [inlined] [2] macro expansion @ ~/.julia/packages/Enzyme/di3zM/src/compiler.jl:4520 [inlined] [3] enzyme_call @ ~/.julia/packages/Enzyme/di3zM/src/compiler.jl:4316 [inlined] [4] AugmentedForwardThunk @...