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

enzyme pass drops noinline attribute. #2195

Open
ZuseZ4 opened this issue Dec 11, 2024 · 1 comment
Open

enzyme pass drops noinline attribute. #2195

ZuseZ4 opened this issue Dec 11, 2024 · 1 comment
Assignees

Comments

@ZuseZ4
Copy link
Member

ZuseZ4 commented Dec 11, 2024

https://fwd.gymni.ch/ft8pz0

The call to __enzyme_autodiff has a callsite debug metadata saying noinline.
This get's dropped by enzyme, so the final call is inlineable.
Now we get the following error:

inlinable function call in a function with debug info must have a !dbg location
  call void @diffegpt2_forward(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4, i64 4, i64 64, ptr %5, ptr %6)
LLVM ERROR: Broken module found, compilation aborted!

I have another compilation pipeline which doesn't encounter this issue, but generally, should Enzyme drop this info?

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2024

llvm-reduce'd example:

https://fwd.gymni.ch/N7NJnq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants