Repository navigation
Make the mixed-derivative precompile workload reach corner extrapolation - #751
ChrisRackauckas merged 2 commits into
Conversation
g = x^2 y + 2t solves Dt(u) = Dxxy(u), so the initial right-hand side is 2 at every interior point of a nine-point grid, which has enough interior taps for corner extrapolation. Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Four interior points per axis are too few for the five interior taps of array_corner_extrapolation, so the workload took the zero-corner branch. Use nine points per axis and data from g = x^2 y + 2t, which solves the equation. Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
|
Correction: the link in the description to the review note on #750 is wrong (the comment id in it does not exist). The review comment it refers to is #750 (comment) . 🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5 |
PR: #751 Reviewed head: 89a6ea1 Risk assessment
Review reportVERDICT: MERGE Risklow (L2: expands precompile and test coverage of existing mixed-derivative corner extrapolation) Blocking findings
Non-blocking findings
What I ran
What I did not verifyOther Julia versions, other test groups, and controlled precompile timing. A project-locked Python environment was unavailable because the checkout has no AUTHOR_GRADE: {"task": "test", "score": 4, "difficulty": 2, "rounds": 1, "author_harness": "Claude Code 2.1.325", "author_model": "claude-sonnet-5-5", "note": "The affected group passed and the analytic RHS assertion caught disabled extrapolation. The fixture let an isolated lower-left corner failure escape."} Head link: 89a6ea1 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Bump version to 1.7.1 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: AI agent <[email protected]> Agent-Harness: Codex Desktop 0.171.0-alpha.13.2 via SciMLFactory hourly_releases Agent-Model: gpt-6.2-astra Agent-Session: local session 01a21e76-5645-7482-9bea-5d2c148f14ff (no session URL)
The mixed-derivative precompile workload added in #750 used four interior points per axis, which is too few for the five interior taps in
array_corner_extrapolation, so it took the zero-corner branch and never compiled corner extrapolation. Its data also did not satisfy the equation at the boundary. This is the non-blocking note from the review of #750: #750 (comment)Changes:
src/precompile.jl: the mixed-derivative workload now usesx => 9, y => 9and the initial and four face values ofg(t,x,y) = x^2*y + 2t, which solvesDt(u) = Dxxy(u).test/Mixed_Derivatives/MOL_Mixed_Deriv.jl: a guard that builds the symbolic ODE for that same fixture and asserts the initial right-hand side is 2 at all 49 interior points, to within1e3 * eps() * h^-3. It passes on current master too, since it checks the discretization rather than the workload.User-visible behaviour is unchanged; only what gets precompiled differs.
Measured on Julia 1.12.1, AMD Ryzen AI Max+ 395, 32 threads. Before is upstream/master (8fc8093), after is this branch. First
discretizein a fresh process (3 runs each, median, import excluded):The latency gain from #750 is kept and slightly extended. Cost, one run each of
Base.compilecachewith dependencies cached: 139.7 s before, 131.8 s after (within run-to-run noise); image 167.4 MB before, 167.2 MB after; peak RSS 6.39 GB before, 6.34 GB after;using MethodOfLinesmedian of 5 is 0.86 s before, 0.91 s after.Verification:
GROUP=Mixed_Derivatives(8 pass, 1 existing broken),GROUP=QA(21 pass) andGROUP=Componentspass; Runic--checkclean.🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5
Review: unreviewed
Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1