Repository navigation
Mark discrete time-grid search helpers as Enzyme inactive - #4496
Merged
ChrisRackauckas merged 1 commit intoSep 11, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Treat _searchsortedfirst/_searchsortedlast and TsSearchHint helpers as inactive with inlining blocked so Enzyme sees the index as constant and never enters the FindFirstFunctions preserve region. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenCode <[email protected]> Agent-Harness: OpenCode (Muse Spark) Agent-Model: muse-spark-1.3-contributor-free Agent-Session: /home/crackauc/sandbox/tmp_20260911_055443_18155
ChrisRackauckas
marked this pull request as ready for review
September 11, 2026 10:39
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 11, 2026
- Unify companion global error estimators into GlobalErrorEstimation (#4492) - Add adjoint-based global error control as a SciMLSensitivity extension (#3953) - ExpRK: cache ishermitian (rebase of #4305, + review fixes) (#4497) - Mark discrete time-grid search helpers as Enzyme inactive (#4496) - GlobalAdjoint: every-step trajectory scope and step-grid control (#4495) - GlobalAdjoint: defer to adjoint_sensitivities default instead of pinning an adjoint (#4498) - Release GlobalDiffEq 1.7.1 (#4501) - Fix GlobalDiffEq precompilation on Julia 1.13 and companion accuracy (#4500) - Make mass-matrix identity/zero/diagonal checks GPU-safe (#4502) - Fix BDF step rejection for backward-in-time integration (#4503) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 12, 2026
- Release OrdinaryDiffEqBDF 2.4.7 (#4490) - Unify companion global error estimators into GlobalErrorEstimation (#4492) - Add adjoint-based global error control as a SciMLSensitivity extension (#3953) - ExpRK: cache ishermitian (rebase of #4305, + review fixes) (#4497) - Mark discrete time-grid search helpers as Enzyme inactive (#4496) - GlobalAdjoint: every-step trajectory scope and step-grid control (#4495) - GlobalAdjoint: defer to adjoint_sensitivities default instead of pinning an adjoint (#4498) - Release GlobalDiffEq 1.7.1 (#4501) - Fix GlobalDiffEq precompilation on Julia 1.13 and companion accuracy (#4500) - Make mass-matrix identity/zero/diagonal checks GPU-safe (#4502) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
- Unify companion global error estimators into GlobalErrorEstimation (#4492) - Add adjoint-based global error control as a SciMLSensitivity extension (#3953) - ExpRK: cache ishermitian (rebase of #4305, + review fixes) (#4497) - Mark discrete time-grid search helpers as Enzyme inactive (#4496) - GlobalAdjoint: every-step trajectory scope and step-grid control (#4495) - GlobalAdjoint: defer to adjoint_sensitivities default instead of pinning an adjoint (#4498) - Release GlobalDiffEq 1.7.1 (#4501) - Fix GlobalDiffEq precompilation on Julia 1.13 and companion accuracy (#4500) - Make mass-matrix identity/zero/diagonal checks GPU-safe (#4502) - Fix BDF step rejection for backward-in-time integration (#4503) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Treat discrete time-grid search helpers as Enzyme inactive so reverse-mode through
sol(t)no longer enters theFindFirstFunctionsSIMD preserve region. Blocking inlining makes Enzyme see the index as constant (correct almost everywhere) and avoids thegc_preservedominance abort.Note
This PR should be ignored until reviewed by @ChrisRackauckas.
Verification
Original MWE from EnzymeAD/Enzyme.jl#3565 (OrdinaryDiffEqTsit5 + Enzyme reverse through
ref(t)):Before (without fix,
git stash):After (with fix):
Commands run:
New regression test
lib/OrdinaryDiffEqCore/test/enzyme_interpolation_tests.jlfails (process abort,LLVM ERROR) before and passes after.Not verified
EnzymeVJPpath (only local MWE verified).julia pre/ allowed-to-fail jobs.Reviewer notes
EnzymeCore.EnzymeRules.inactive(notinactive_noinl) deliberately to block inlining;inactive_noinlstill inlines and still crashes.Enzymeto[extras]/testtargets for OrdinaryDiffEqCore only; no new runtime dep.:inactivealongside existing:inactive_noinlforEnzymeCore.EnzymeRulesinternals.🤖 Generated with OpenCode (Muse Spark) (model: muse-spark-1.3-contributor-free)
Session: /home/crackauc/sandbox/tmp_20260911_055443_18155
Links: