Repository navigation
Add ImplicitEuler to OrdinaryDiffEqSDIRK precompile workload - #4658
Merged
ChrisRackauckas merged 1 commit intoSep 27, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
User-defined in-place ImplicitEuler first solves were paying ~16 s of compile; covering it alongside TRBDF2/KenCarp4 drops that to ~0.5 s. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent 2026.09.26-dd393fe Agent-Model: unknown (Cursor auto) Agent-Session: local cursor-agent session in /home/crackauc/sandbox/goals/performance/jobs/pr-sdirk-precompile/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-sdirk-precompile/log.txt)
ChrisRackauckas
marked this pull request as ready for review
September 27, 2026 14:58
ChrisRackauckas
referenced
this pull request
Sep 29, 2026
* Bump DiffEqBase to 7.21.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqBDF to 2.4.12 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSDIRK to 2.9.7 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqRosenbrock to 2.7.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqLowOrderRK to 2.2.6 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqTsit5 to 2.1.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqVerner to 2.4.2 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSymplecticRK to 2.2.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
Add
ImplicitEuler()to the@compile_workloadsolver_listinOrdinaryDiffEqSDIRK(alongside the existingTRBDF2()/KenCarp4()). Nothing else changes.Why:
#3099added SDIRK precompile coverage for TRBDF2 and KenCarp4 only. There is no stated reason in that PR for leavingImplicitEulerout — it was scoped to those two “widely-used methods.” A subsequent performance audit showed user-defined in-placeImplicitEulerfirst solves still paying ~16 s of compile because the integrator/cache types are parameterized by the alg type.Please ignore until reviewed by @ChrisRackauckas.
TTFS (process CPU seconds,
/proc/self/statutime+stime)Fresh process each run; user-defined stiff
f(not packagelorenz). Minimum of 4 runs.ImplicitEuler()ImplicitEuler()TRBDF2()(control)Command (one alg per process):
ttfs_one.jlreads utime+stime around the firstsolveof a localmyf!/myf.Audit reference (same machine family): 15.95 → 0.62 s. This session: 15.55 → 0.47 s.
Precompile cost (CPU seconds via
/usr/bin/time -f %U+%S)Force recompile by appending a throwaway
# force-recompile-marker …comment toOrdinaryDiffEqSDIRK.jl(Julia 1.12 keys on content), then restore. Warm sibling deps; 3 alternating A/B repeats. Values below are min of 3 ofuser+system./usr/bin/timeU+S (min of 3)Budget ratio
#3099 note
No quote exists explaining why
ImplicitEulerwas omitted. The PR body only states workloads were added forTRBDF2()andKenCarp4()as widely-used methods.Validation
--checkon the changed file: passtyposon the changed file: passtest_groups.toml;runtests.jlalways runs the four Core suites (and activates a QA env forGROUP=QA|ALLbut does not includeqa/*.jl)broken=true)mode=:typo): fail on pre-existing “local variable may be undefined” reports ingeneric_imex_perform_step.jl(unrelated to this one-line workload change)stage_predictornon-public import (unrelated)What was not verified
masterin SublibraryCI (SDIRK’sruntests.jldoes not include the QA files)Risk assessment
@compile_workload; no solver logic change.🤖 Generated with Cursor Agent (model: auto), orchestrated by Claude Code (claude-opus-5-5[1m]) session https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv
Made with Cursor