Enzyme icon indicating copy to clipboard operation
Enzyme copied to clipboard

New C++ interface with lambda

Open jandrej opened this issue 11 months ago • 2 comments

Reproducer https://fwd.gymni.ch/y9blF5

jandrej avatar Mar 08 '24 22:03 jandrej

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).

tgymnich avatar Mar 08 '24 22:03 tgymnich

The only code I can share is a similar MFE https://fwd.gymni.ch/2szOgk @samuelpmishLLNL

jandrej avatar Mar 08 '24 22:03 jandrej