-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unexpected Crash using Forward
#174
Comments
Ok, if you have two functions with the same signature and only one crashes, I tend to blame it on Enzyme core. |
Proper example to reproduce the issue: #![feature(autodiff)]
#[autodiff(df2f, Forward, Const, Dual, Dual)]
#[no_mangle]
pub fn _f2(x: &[f64], y: f64) -> f64 {
let xy: Vec<_> = x.iter().map(|xi| xi / y).collect();
xy.iter().sum()
}
fn main() {
df2f(&[1.0], 1.0, 1.0);
} Here is the link to the Enzyme Explorer after following your instructions in the debug docs. |
Is there anything I have to consider when re-building the compiler? I pulled the latest changes and recompiled but I end up with the same error. |
Uhm, not really. You can try |
I encountered unexpected behavior with a function and I am unsure what the issue is (compiled via
cargo +enzyme run --release
)Error message:
The text was updated successfully, but these errors were encountered: