Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New C++ interface with lambda #1785

Open
jandrej opened this issue Mar 8, 2024 · 2 comments
Open

New C++ interface with lambda #1785

jandrej opened this issue Mar 8, 2024 · 2 comments
Labels
bug Something isn't working needs more information

Comments

@jandrej
Copy link
Contributor

jandrej commented Mar 8, 2024

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

@tgymnich
Copy link
Member

tgymnich commented Mar 8, 2024

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 tgymnich added bug Something isn't working needs more information labels Mar 8, 2024
@jandrej
Copy link
Contributor Author

jandrej commented Mar 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more information
Projects
None yet
Development

No branches or pull requests

3 participants