-
Notifications
You must be signed in to change notification settings - Fork 4
ODE example failing #1
Comments
This is a Type analysis bug, can you post a log, ideally with the EnzymePrintType flag on |
Sure, here it goes. The printType flag is on. |
Can you run with the following flag set to false: https://github.com/wsmoses/Enzyme/blob/f7c9fe57112bba48caee520b0dec28ec55e48285/enzyme/Enzyme/TypeAnalysis/TypeAnalysis.cpp#L68 It appears there is a potential type confusion as to whether something is an integer vs a pointer on |
Thanks for finding the origin. Not sure how aware you are about the rust types, so the Option here doesn't read as either ptr or alloc, instead it's either That's with strict-aliasing=true: https://drive.google.com/file/d/1PTqFNkxx7VyZzR9BZwe0nKq7RPJmn9IU/view?usp=sharing |
Using
one the following test function:
will lead to Enzyme failing with the following message:
I'm using an Enzyme fork with the Rust debug parser merged, but the failing code doesn't seem to be affected by that:
https://github.com/ZuseZ4/Enzyme/blob/08eb0646ee6f0ae7eca99fcc41f0c54fcc09cbc1/enzyme/Enzyme/TypeAnalysis/TypeAnalysis.cpp#L617
It could be due to the sloppy initialization of some values which (based on my understanding) shouldn't be seriously considered
by Enzyme: https://github.com/rust-ml/oxide-enzyme/blob/a1dfbde391b32cde6a594b9fe87f7e8b8940a9e2/src/enzyme/enzyme_wrapper.rs#L77
I guess this issue about allocating is outdated, correct? https://github.com/wsmoses/Enzyme.jl/blob/05c9b84f9051c5bd8863925e54a2fc4eb11fc784/src/Enzyme.jl#L126
The text was updated successfully, but these errors were encountered: