Skip to content

Use remake_zero! #1220

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 1 commit into from
Jun 14, 2025
Merged

Use remake_zero! #1220

merged 1 commit into from
Jun 14, 2025

Conversation

ChrisRackauckas
Copy link
Member

Fixes #1202

@ChrisRackauckas ChrisRackauckas merged commit e0b89fe into master Jun 14, 2025
21 of 30 checks passed
@ChrisRackauckas ChrisRackauckas deleted the remake_zero branch June 14, 2025 10:42
@@ -315,7 +315,7 @@ function vec_pjac!(out, λ, y, t, S::AdjointSensitivityIntegrand)

if SciMLBase.isinplace(sol.prob.f)
# Correctness over speed
# TODO: Get a fix for `make_zero!` to allow reusing zero'd memory
# TODO: Get a fix for `remake_zero!` to allow reusing zero'd memory
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisRackauckas this should've been changed to be in place right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shit yes

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.

EnzymeVJP slow down due to allocations from repeated make_zero
2 participants