Enzyme
Enzyme copied to clipboard
New C++ interface with lambda
Reproducer https://fwd.gymni.ch/y9blF5
error: /enzymeroot/enzyme/utils:221:63: in function main i32 (i32, ptr): Enzyme: Cannot cast __enzyme_autodiff primal argument 6, found %263 = load i32, ptr %this1.i248, align 4, !dbg !40982, type i32 - to arg 1 ptr
Could you also post some C++ code for this. This seems like a frontend error (wrong enzyme invocation).
The only code I can share is a similar MFE https://fwd.gymni.ch/2szOgk @samuelpmishLLNL