You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For all functions Enzyme analyzes, it creates a copy called preprocess_ where it can do some preprocessing optimizations (useful if you have Enzyme take a derivative of its own output). In this case it didn't do anything (especially since the enzyme_preopt=false flag says only do the bare minimum preprocessing necessary).
All preprocessing functions can be ignored/deleted (they've only been left around so far for debugging purposes).
It's particularly useful to view the preprocessed function if you supply the optional flag enzyme_inline=1 where it tries to inline all functions when doing AD if possible (often positive for performance, and a good comparison to make).
I tried this simple input
sin2.ll
:and run it through like this:
with the result:
I can see that it left
@tester
intact that returnsx^2
. Then it optimized out the@__enzyme_autodiff
to just return2*x
.But why did it create the
@preprocess_tester
function?The text was updated successfully, but these errors were encountered: