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
@wsmoses this is an issue that is encountered relatively often with Enzyme as far as I can tell. My understanding of it is that the compiler sometimes will replace initialization of a large object/multiple small objects with a memset of a large chunk of memory with a constant and Enzyme can't tell what data was supposed to be at the destination memory location. Is this correct? Do you maybe have any leads on how to improve this, or where to look if I want to improve it?
Issue:
I get the following error:
in function:
Issue is specifically that the compiler optimizes this assignment to a memset call if assigned value is 0.0. For any other assignment like
it compiles fine.
It also compiles if I give option
-O0
thus avoiding optimization of assignment tomemset
.Enzyme Explorer:
https://fwd.gymni.ch/ecQeCs
Full example:
compiled as
Enzyme commit:
192d9231aaa5415fa135ffb3568cc8eceef512d5
The text was updated successfully, but these errors were encountered: