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

1.11 error AssertionError: Base.isdispatchtuple

Open wsmoses opened this issue 4 months ago • 3 comments

(f, tt, world, typeof(f)) = (Enzyme.Compiler.add_one_in_place, Tuple{Any}, 0x000000000000683a, typeof(Enzyme.Compiler.add_one_in_place))
  
  Stacktrace:
    [1] methodinstance
      @ ~/.julia/packages/GPUCompiler/2CW9L/src/jlgen.jl:82 [inlined]


 function nested_codegen!(mode::API.CDerivativeMode, mod::LLVM.Module, f, tt, world)
+    @show f, tt, world, typeof(f)
     funcspec = GPUCompiler.methodinstance(typeof(f), tt, world)
     nested_codegen!(mode, mod, funcspec, world)
 end

So essentially here we request a generic form of the function add_one_in_place requesting it for an any input. This works on 1.10, but fails on 1.11 hitting the aforementioned assertion error

wsmoses avatar Sep 29 '24 05:09 wsmoses