-
Notifications
You must be signed in to change notification settings - Fork 57
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 compilation failed on IPU #751
Comments
This locally works, do you have the full config (it looks like this isn't base.log) |
What do you need exactly?
Uhm, why do you think so? I don't think I'm overriding I forgot to mention I'm on |
We explicitly mark Base.log as being log-like, if you call another log, we will not do that. Hence wondering what method you call. |
See Line 57 in 3017330
and Enzyme.jl/src/compiler/interpreter.jl Line 105 in 3017330
If these wouldn't trigger on your function, that is the issue. |
Uhm, I get the same error with f(x) = Base.log(x)
f′(x) = first(first(autodiff_deferred(Reverse, f, Active(x)))) but not with f′(x) = first(first(autodiff_deferred(Reverse, Base.log, Active(x)))) nor f′(x) = first(first(autodiff_deferred(Reverse, log, Active(x)))) nor const f = log
f′(x) = first(first(autodiff_deferred(Reverse, f, Active(x)))) 😕 |
Maybe there's have been some overridden method in your IPU stuff. Can you send me a file that I can run locally that errors? |
try this PR maybe? #768 |
No, that doesn't seem to help unfortunately. I'm very confused by the fact f′(x) = first(first(autodiff_deferred(Reverse, log, Active(x)))) works though |
I just realised I didn't share the stacktrace:
This is definitely entering inside
the call to |
@vchuravy does this interpreter not abide by Enzyme's noinlining for custom functions? |
Yeah I think this is equivalent to #683 |
Closing as equivalent |
I'm playing with
Enzyme.jl
on an IPU. Autodiff of a few functions work out-of-the-box, which is awesome, but differentiation oflog
chokes:Dump of LLVM IR (too long to post here).
It's not impossible I have something wrong in my GPUCompiler runtime.
The text was updated successfully, but these errors were encountered: