Repository navigation
Keep stored SCC subsolutions concrete for uniform return codes - #1401
Draft
ChrisRackauckas-Claude wants to merge 1 commit into
Draft
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Narrow the collected vector only when saving it as original so parameter callbacks keep their existing solution view types. Cover forwarding FunctionWrappers and mixed subsolution return-code types. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-sol Agent-Job: 1400-codex Agent-Session: local session 01a20341-535d-7732-a8d5-4707576122fc (no session URL)
This branch has not been deployed
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.
What changed
SciMLBase v3.57.0 added a return-code type parameter to
NonlinearSolution, so the vector-form SCC working buffer can have a non-concrete element type. This follow-up to the existing SCC draft keeps the working buffer and its callback views compatible and narrows the collected subsolutions whenstore_original = Val(true). The additional tests exercise a closure that forwards to a legacyFunctionWrapperand a solve whose subsolutions have different return-code types. SciMLBase changeThe master SCC failures are the same assertion on Julia 1 and Julia LTS.
CUDA dependency failure
The master CUDA job resolved CUDA/CUDACore 6.4.2 and GPUCompiler 2.23.4. Its first in-place solve failed
@test_nowarnattest/gpu/cuda_tests__item1.jl:36with the warningUse of GPUCompiler.compile_hook is deprecated, use run_compile_hook or with_compile_hook instead.The job reported 21 passes and one failure. The deprecated call is in CUDACore 6.4.2. The calling code switched APIs in CUDA.jl's fix, released in CUDA 6.5.0.In an isolated copy of the CUDA test project, the resolver selected CUDA 6.4.2. Forcing 6.5.1 exposed incompatible KernelAbstractions bounds. The first bound below comes from LinearSolve, and the second comes from CUDACore.
I developed the pending LinearSolve compat PR in the isolated copy and the same CUDA version request resolved with KernelAbstractions 0.10.8. The resolver result identifies the remaining release work in LinearSolve.jl.
Local verification
SCC Core on Julia 1.13.3 and 1.10.12 used SciMLBase 3.58.0, the version in the failing CI jobs. The LTS command used the shared SciML CI source setup script in an isolated checkout.
Runic, typos, and the whitespace check each exited 0.
Failing before on master using its tracked tests and source. Julia 1.13.3 and 1.10.12 both exited 1.
Passing after with the same group commands. All three exited 0.
SCC Core also passed with SciMLBase 3.56.0 on Julia 1.13.3.
GROUP=Core julia +1 --startup-file=no --project=lib/SCCNonlinearSolve -e 'using Pkg; Pkg.instantiate(); Pkg.pin(Pkg.PackageSpec(name="SciMLBase", version=v"3.56.0")); Pkg.test()'Pull request CI
SCC Core passed on Julia 1 and Julia LTS. The FunctionWrappers testsets passed 20/20 and 19/19 respectively. SCC QA passed 20/20, and the SCC downgrade job passed. The pre-release lane reports that it ran without the Core tests because Julia 1.14.0-beta1 is a beta.
The Dependabot workflow reported a startup failure with zero jobs, as on an earlier pull request. This run, earlier run.
The root downgrade, benchmarks, and documentation build passed. All eight integration jobs passed.
The full sublibrary downgrade workflow passed, including the NonlinearSolveFirstOrder job. At completion the PR check rollup showed 32 passing, one skipped, and zero pending or failed checks.
Verification gaps and review
The CUDA test group requires an NVIDIA GPU. The CUDA investigation covers the job log, source call, and dependency resolution. GPU, downstream, and prerelease suites were outside local coverage.
Review the extra vector allocation when debug storage is enabled and the working element type is non-concrete. Mixed return-code types can give the stored vector a common abstract element type.
Closes #1400
Risk assessment
originalvector returned by vector-form SCC solves🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a20341-535d-7732-a8d5-4707576122fc (no session URL)