Currently Ariadne is using Enzyme make_zero mechanism, but at least for forward mode we should be able to make something much simpler that just resets the zero in the parameters struct.
We can't overload make_zero because for reverse mode we do have a bigger issue.
Additionally it's "frustrating" to mark the entire parameters struct active just for the caches, ideally we could split p into two parts, one the active and one the inactive part.
Currently Ariadne is using Enzyme
make_zeromechanism, but at least for forward mode we should be able to make something much simpler that just resets the zero in the parameters struct.We can't overload make_zero because for reverse mode we do have a bigger issue.
Additionally it's "frustrating" to mark the entire parameters struct active just for the caches, ideally we could split p into two parts, one the active and one the inactive part.