Skip to content

Fix @static_timeit for TimerOutputs ≥ 0.5.27 (#1224) - #1225

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-timer-expr
Aug 30, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-timer-expr

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Summary

This does not restore TimerOutputs 0.5 compat (supersedes the approach in #1223). The OrdinaryDiffEq downstream resolution failure is fixed by widening TimerOutputs in AlgebraicMultigrid instead: JuliaLinearAlgebra/AlgebraicMultigrid.jl#137

Verification

  • Local precompile with enable_timer_outputs => true and TimerOutputs 1.2.0: timer_outputs_enabled: ok on Julia 1.10.11 and 1.12.7.
  • GROUP=Core julia +1.10 --project=lib/NonlinearSolveBase -e 'using Pkg; Pkg.test()' passed (all Core testsets).
  • GROUP=QA same: 18 passed in 33.6s.
  • Runic --check and typos clean on the remaining diff.

Not verified: GPU, downstream OrdinaryDiffEq/ModelingToolkit CI, allowed-to-fail jobs.

Please ignore this PR until it has been reviewed by @ChrisRackauckas.

🤖 Generated with Grok CLI 1.0.13 (model: grok-4.6)
Session: 01a05284-357b-7d52-bddf-1ca1ef8a15a2

Pass `__source__` into `timer_expr`, matching the signature since
TimerOutputs 0.5.27 / 1.x, so `enable_timer_outputs()` can precompile.
Add a subprocess test that loads with the preference enabled.

Co-authored-by: Cursor <[email protected]>
Keep the TimerOutputs ≥ 0.5.27 `timer_expr` signature fix. The extra
test spawned a fresh process, developed NonlinearSolveBase into a temp
env, forced `compilecache`, and injected a probe via `@eval`.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Grok <[email protected]>
Agent-Harness: Grok CLI 1.0.13
Agent-Model: grok-4.6
Agent-Session: 01a05284-357b-7d52-bddf-1ca1ef8a15a2
@ChrisRackauckas-Claude
ChrisRackauckas-Claude marked this pull request as draft August 30, 2026 12:04
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 30, 2026 12:16
@ChrisRackauckas
ChrisRackauckas merged commit 78b1484 into SciML:master Aug 30, 2026
13 of 16 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 10, 2026
- Require all components to stall before resetting Broyden (#1184)
- Add adaptive Jacobian reuse to first-order solvers (#1072)
- Release 4.29.1 (#1220)
- Release 2.49.1 (#1221)
- Release 1.15.3 (#1222)
- Fix @static_timeit for TimerOutputs ≥ 0.5.27 (#1224) (#1225)
- NonlinearSolveBase: rebuild a pre-wrapped function when its signatures do not match u0/p (#1226)
- Fix reverse AD through despecialized parameters (#1228)
- Preserve Jacobian cache parameter representation (#1227)
- Preserve TrustRegion cache parameter representation on reinit (#1229)



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 referenced this pull request Sep 10, 2026
- Remove name duplicates in keyword arguments/named tuples (#1238)
- Add 32-bit Core CI lane via test_groups.toml (#1239)
- Add a native bounded trust-region solver (#1219)



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]>
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.

enable_timer_outputs() breaks precompilation: @static_timeit calls TimerOutputs.timer_expr without the LineNumberNode argument

2 participants