Repository navigation
Preserve inference for ordinary NonlinearFunction calls - #1526
ChrisRackauckas merged 1 commit into
Conversation
|
CI equivalence audit I compared every failing job on this PR with the clean
Therefore all 50 failures are clean-master failures, not regressions from this patch. The remaining non-resolver runtime cluster is the existing OrdinaryDiffEq |
5c473fe to
4d15bdd
Compare
|
Rebased unchanged onto current SciMLBase master Fresh local validation on Julia 1.12.7: The exact NonlinearSolve |
4d15bdd to
64ca35d
Compare
|
Updated the draft to commit The first rebased head exposed a second, distinct dispatch error in source-triggered NonlinearSolve precompilation. The revised helper now invokes the public despecialization hook on the wrapped callable while the parameter is still a |
|
The requested NonlinearSolveBase source touch has now expanded the full sublibrary matrix and independently reproduced the same SimpleNonlinearSolve allocation regression on the reset-fix branch: This is the expected unresolved owner failure; the exact local fail-before/pass-after evidence remains in this PR body. |
Co-Authored-By: Chris Rackauckas <[email protected]>
64ca35d to
91991d2
Compare
|
CI triage: the completed The focused Catalyst correction routes |
|
The focused fix for this ReleaseTest failure is now draft SciML/Catalyst.jl#1542. It depends on the two separate clean-master Catalyst prerequisites linked in that body; their combined QA, Modeling, and Spatial groups all pass locally. |
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed and why
Ordinary concrete-parameter calls still dispatch directly from
NonlinearFunctionto the wrapped callable, preserving inference through deepSimpleHomotopySweepcall chains. Calls receivingDespecializedParametersnow invoke the documented despecialization hook on the wrapped callable itself, before the parameter wrapper can be removed.The first rebased draft head routed the barrier through the whole
NonlinearFunction. That fixed the allocation regression but bypassed NonlinearSolveBase's wrapped-callable hook: the wrapper was unwrapped to aNamedTupleand then sent directly to aFunctionWrappersWrapper, causing the source-triggered NonlinearSolve precompile failure. This revision covers both paths and bumps SciMLBase from 3.49.1 to 3.49.2.The original regression is tracked at SciML/NonlinearSolve.jl#1161 and begins at a932b02 (SciMLBase 3.45.0; 3.44.0 passes the focused downstream control).
Failing before
On clean current NonlinearSolve master with released SciMLBase 3.49.1, the exact allocation group produced:
The regression test added here also discriminates the correction to the first draft head. With the previous source and the identical test:
Passing after
With the final hook routing:
The unchanged NonlinearSolve checkout then crossed both former precompile failure points:
The exact CI-style allocation group with this SciMLBase source also passed:
Final local validation:
Runic --check .,typosover the diff, andgit diff --checkall exited 0 with no output.No public API, docstring, dependency, or documentation file changes are included, so a docs build was not required. The full downstream NonlinearSolve Core test body, GPU paths, and other downstream groups were not run to completion locally.