Closed ZuseZ4 closed 6 months ago
Following a discussion with Ralf and others we (for now) intentionally don't support Globals since they are discouraged and even without AD cause safety concerns, more in the context of AD. Probably not worth as a tradeoff.
We don't support globals on the rust side yet, but maybe the support is also something we could improve on the Enzyme core side. Credits to Ralf Jung for the alternative approach, bugs in the example are my own production ^^
Since we already modify function types, can't we instead require shadows of globals to be passed as extra input to dfoo? WIP