Enzyme.jl icon indicating copy to clipboard operation
Enzyme.jl copied to clipboard

UndefRefError: access to undefined reference

Open wsmoses opened this issue 3 years ago • 3 comments

using Enzyme
Enzyme.API.printall!(true)

function bad(@nospecialize(t))
    t = Tuple{t...}
	return Base.unwrap_unionall(t)
end

@show bad((Int64,))
flush(stdout)

@show Enzyme.fwddiff(bad, Duplicated, Duplicated((Int64,), (Int64,))) #,(Int64,)))

wsmoses avatar Apr 30 '22 23:04 wsmoses

Now a:

ERROR: LoadError: UndefRefError: access to undefined reference
Stacktrace:
 [1] unsafe_convert
   @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4491 [inlined]
 [2] macro expansion
   @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4734 [inlined]
 [3] enzyme_call
   @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4530 [inlined]
 [4] ForwardModeThunk
   @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4515 [inlined]
 [5] autodiff
   @ /mnt/Data/git/Enzyme.jl/src/Enzyme.jl:390 [inlined]
 [6] fwddiff(f::typeof(bad), #unused#::Type{Duplicated}, args::Duplicated{Tuple{DataType}})
   @ Enzyme ./deprecated.jl:72
 [7] top-level scope
   @ show.jl:1047
in expression starting at /mnt/Data/git/Enzyme.jl/appgen.jl:12

wsmoses avatar Aug 08 '22 18:08 wsmoses

@vchuravy this variant of the issue is not resolved by your PR.

wsmoses avatar Aug 11 '22 20:08 wsmoses

As far as I can tell duplicate of #347

vchuravy avatar Aug 19 '22 16:08 vchuravy