Skip to content

Safety make_zero! on repeated Enzyme calls with caches #1067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 19, 2025

Conversation

ChrisRackauckas
Copy link
Member

This should ensure that the caches are always zero'd for the derivatives.

@ChrisRackauckas
Copy link
Member Author

@ChrisRackauckas
Copy link
Member Author

For some reason this function fails Enzyme.Compiler.guaranteed_const_nongen(typeof(_pf), nothing) false and then in the next iterate it errors. It seems like make_zero! is not robust to active values in closures?

@ChrisRackauckas
Copy link
Member Author

Current error is EnzymeAD/Enzyme.jl#1661

@ChrisRackauckas ChrisRackauckas merged commit 24e9fde into master May 19, 2025
26 of 30 checks passed
@ChrisRackauckas ChrisRackauckas deleted the makezerobang branch May 19, 2025 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants