EnzymeAD / rust

A rust fork to work towards Enzyme integration
https://www.rust-lang.org
Other
67 stars 9 forks source link

Rust: Enzyme error when differentiating the same function two ways #65

Closed jedbrown closed 8 months ago

jedbrown commented 10 months ago

The reproducer for this is in Rust: https://github.com/EnzymeAD/rust/pull/31/commits/4459599d0112cea713194d7e03fbe1390a700230

$ cd library/autodiff
$ ENZYME_PRINT_MOD=1 cargo +enzyme run --example=sin --release >& out.txt

The test compiles and runs correctly if either lines 40-42 are commented or if lines 45-47 are commented.

out.txt (21 MB)

ZuseZ4 commented 10 months ago

transfered, since it is not an Enzyme issue.

ZuseZ4 commented 8 months ago

Closing as based on the old design. I assume the new one should not fail here (once we fixed the other Enzyme core issues). Please create an issue if still breaking.