Skip to content

Remove dead commented HighOrderRK tight-loop blocks - #4734

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:hork-drop-dead-tight-loop
Oct 4, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:hork-drop-dead-tight-loop

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

What changed

Deleted five obsolete #= … =# blocks containing commented-out @tight_loop_macros implementations from the HighOrderRK step and addsteps sources. The change removes 352 comment lines and leaves executable code unchanged. No new test is needed for a pure dead-code deletion.

Before/after evidence

The SHA-256 hashes of serialized sol.u match before and after the deletion for Lorenz solves on Julia 1.12.4 (tspan=(0,10), abstol=reltol=1e-8):

Algorithm In-place sol.u SHA-256 Out-of-place sol.u SHA-256
DP8 ef4d214ca11afb8cabeec2bf374d83652127d7d0a5f9f9db319d8e92803b3725 99bd995527408124c066af4ca0f88d8344c1d5de0c945eaba183359d9f55e573
TanYam7 3c191921893d3ec4a9a1a02078409bdb60c4ba69ca4e714799f7b0424cc5ff68 d2448d2383b00b5e6061cb7fe83eb72fec90cb5829b66f02d724d80cfcc5a228
TsitPap8 238deeab725129d05d43e28d28a048eec27ec01643bb67a5adc5e4a60928bb0e 8378ffa713d49c0ecbfbea82f777bc5e990f149781c323c1c40b64ed6277dff6
PFRK87 77acc668ad8f8ff97ae874637529c2331ba5ceec78d6cde9264c01f21592c4e8 01d4cf247e56bf3225f6bd4ce277c2f876b40bdd4f24eeaa19896538ffda3bda

Verification

  • julia --project=lib/OrdinaryDiffEqHighOrderRK /home/crackauc/sandbox/goals/performance/jobs/pr-hork-deadcode/scratch/hash_solutions.jl — package loaded and all eight solves completed before and after; hashes above match.
  • GROUP=Core julia --project=lib/OrdinaryDiffEqHighOrderRK -e 'using Pkg; Pkg.test()' — High Order ERK Convergence Tests | 8 8 1m42.9s; package tests passed.
  • GROUP=QA JULIA_REVISE_POLL=1 julia --project=lib/OrdinaryDiffEqHighOrderRK -e 'using Pkg; Pkg.test()' — Allocation Tests | 4 4 1m59.4s; JET Tests | 1 1 1m00.4s; Aqua | 21 21 1m47.2s; package tests passed. The initial QA attempt hit the host's exhausted inotify instance limit (EMFILE); setting Revise polling avoided that host limit without changing the tests.
  • Julia 1.10.12: package loaded and all eight Lorenz solves completed using a scratch environment resolved for Julia 1.10.
  • Runic on both changed files and typos on both changed files exited 0; git diff --check passed.

CI comparison

All checks completed: 127 succeeded, 3 were skipped, and 4 failed. Each failure also reproduces on the exact base commit 217e0adef65f2b117b165c537c002b6227f137d6 in clean default-branch runs, with the same error or failing test:

  • DiffEqBase downgrade: high_level_solve.jl:94 failed and the three callback assertions errored, on both PR CI and base CI.
  • OrdinaryDiffEqDifferentiation downgrade: diag(::SciMLOperators.ScalarOperator{Float64, ...}) has no matching method, on both PR CI and base CI.
  • SciMLSensitivity Core1: Mooncake reports MethodError: no constructors have been defined for Any, on both PR CI and base CI.
  • GPU: the three QNDF DAE cases with mass=diag_cu fail, on both PR CI and base CI. This is an allowed-to-fail GPU check.

Not verified

The full suite and Julia 1.10 test groups were not run locally. Downstream and GPU paths were exercised by CI; their failures match the exact base commit above.

Reviewer pushback

Please flag any deleted region that is not wholly inside a block comment; the intended scope is the five complete commented-out blocks only.

Please ignore until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: low
  • Blast radius: two source files; comment-only deletions with no public API or executable code changes.
  • Evidence: all eight before/after sol.u hashes match; Core passed 8/8; QA passed AllocCheck 4/4, JET 1/1, and Aqua 21/21. The 4 CI failures also occur on the exact base commit.
  • Independent review: pending
  • Merge: needs human review — draft awaiting independent review; CI failures match the exact base commit.

🤖 Generated with Codex CLI codex-cli 0.160.0 (model: gpt-6-luna), transcript /home/crackauc/sandbox/goals/performance/jobs/pr-hork-deadcode/log.txt on amdci2; orchestrated by Claude Code (claude-opus-5-5[1m]) https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv

Risk assessment

  • Risk: low
  • Blast radius: Two source files in lib/OrdinaryDiffEqHighOrderRK, src/high_order_rk_addsteps.jl and src/high_order_rk_perform_step.jl. The diff has 0 additions and 352 deletions. Every deleted line sits inside one of five balanced, non-nested #= … =# blocks: the DP8Cache _ode_addsteps!, plus the TanYam7Cache, TsitPap8ConstantCache, TsitPap8Cache and DP8Cache perform_step! blocks. The only other deleted line is one trailing blank line. No executable code, public API or exports change, so the SemVer impact is none. It uses no non-public dependency internals and weakens no tests.
  • Evidence: On head 3f64f631, 127 checks passed, 1 was skipped and 4 failed. I checked each failure against the default branch on two commits: the PR's base 217e0ade (runs 37015598952, 37015599011, 37015599337, all master push events) and current master 4a5c0e71. All four fail on both, so all four are pre-existing and none is a regression:
    • downgrade-sublibraries / test (lib/DiffEqBase): high_level_solve.jl:94 Test Failed.
    • downgrade-sublibraries / test (lib/OrdinaryDiffEqDifferentiation): no method matching diag(::SciMLOperators.ScalarOperator…).
    • SciMLSensitivity.jl/Core1/1 / Downstream Tests - Core1: Mooncake MethodError: no constructors have been defined for Any, plus a "Complex Adjoints" error. The base log has the same two errors.
    • tests / GPU (julia 1, …) / Tests - GPU (Julia 1): QNDF mass=diag_cu failures at dae_tests.jl:481, the same three cases as on base.
  • Small inaccuracies in the description (not risks): it says "3 were skipped", but gh pr checks shows 1. Its Core1 entry mentions only the Mooncake error, not the "Complex Adjoints" error, which is also present on base. The PR has no review comments yet and is still a draft.
  • Independent review: Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium rated it low, high confidence: the diff only deletes complete block comments, and every CI failure reproduces with the same error on both the base commit and current master.
  • Merge: auto-merge candidate. It needs to be taken out of draft, and the description asks Chris to review it first.

🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium; dispatched by Devin CLI 3000.11.3 (Mac) fleet-master caretaker, model Fusion (claude-opus-5-5 medium + swe-2 medium)
Conversation: local transcript ~/.local/share/devin/cli/transcripts/speckle-whale.json (Chris's Mac)

Delete the obsolete block-commented tight-loop implementations from the step and addsteps sources.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI codex-cli 0.160.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/pr-hork-deadcode/log.txt on amdci2
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review October 4, 2026 14:22
@ChrisRackauckas
ChrisRackauckas merged commit c64b9fb into SciML:master Oct 4, 2026
130 of 134 checks passed
ChrisRackauckas referenced this pull request Oct 14, 2026
…inaryDiffEqBDF, OrdinaryDiffEqExplicitRK, OrdinaryDiffEqFIRK, OrdinaryDiffEqFeagin, OrdinaryDiffEqHighOrderRK, OrdinaryDiffEqPDIRK, OrdinaryDiffEqRKN, OrdinaryDiffEqSDIRK, StochasticDiffEqHighOrder, StochasticDiffEqLowOrder, and StochasticDiffEqMilstein for release (#4871)

Agent-Harness: Devin CLI 3000.11.3
Agent-Model: Fusion (Claude Opus 5.5 Medium + SWE-2 Medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/flash-hour.json

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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