Repository navigation
Restore GPU Broyden inverse initialization - #1066
ChrisRackauckas merged 1 commit into
Conversation
|
Investigation scratchpad:
Implementation commit: Local CUDA execution is unavailable because this host's CUDA driver is not functional. The PR CUDA job is the required validation of the CuArray path. |
|
CI baseline classification: the two immediate downgrade failures reproduce on the exact upstream base commit
In both the base and PR runs, the downgrade harness explicitly requires SciMLOperators The root CUDA job remains the gating check for this PR's behavior change. |
|
Scheduled one-hour CI follow-up at 2026-07-13 19:39 EDT: 62 checks pass, 3 matrix placeholders are skipped, 6 completed failures are the already-classified clean-master resolver/ExplicitImports and generalized-Rosenbrock failures, and 22 checks remain queued. I inspected the newly completed current/prerelease Core logs; both fail only Generalized Rosenbrock alg #4. The decisive root CUDA job is still queued without a runner, so this run does not yet provide GPU verification of the patch. Local CUDA execution remains unavailable on this machine; the GPU result will be reported only after that job actually runs. |
|
GPU verification completed on the self-hosted V100 runner. The root CUDA group passed 22/22 in 57.3 seconds, versus the prior 20-test baseline; the two added tests are the in-place and out-of-place Broyden inverse-initialization regressions. The subsequent termination-allocation checks passed 20/20, and the harness ended with NonlinearSolve tests passed. This is the first actual CUDA execution result for the patch; local GPU execution was unavailable. |
Co-Authored-By: Chris Rackauckas <[email protected]>
3caef15 to
0060a02
Compare
|
Rebased the single focused commit onto current upstream Fresh Julia 1.12.6 validation on the rebased commit: NonlinearSolveBase The branch update used |
Ignore until reviewed by @ChrisRackauckas.
Summary
A * X = Iinverse workspace for array backends that do not support fast scalar indexingpinvRoot cause
PR #1039 changed QuasiNewton inverse initialization from the backend-native
pinv(A)path to a cached LinearSolve factorization with a matrix identity right-hand side. OnCuArray, the cuSOLVER QR matrix-RHS path throwsDimensionMismatch: array could not be broadcast to match destination, which breaks both Broyden variants in the CUDA job.linsolve_workspacenow reports no generic cached workspace for backends whereArrayInterface.fast_scalar_indexingis false.linsolve_identity!!first calls the dispatched workspace constructor, so the existing sparse specialization still builds its dense workspace; it usespinvonly when dispatch returns no workspace.Adjacent CI boundary
d616cd994passed the root CUDA suite 20/20: https://github.com/SciML/NonlinearSolve.jl/actions/runs/29179879552/job/866155286866a7687f542failed the root CUDA suite 18/20 with the same two BroydenDimensionMismatcherrors: https://github.com/SciML/NonlinearSolve.jl/actions/runs/29180426325/job/866169549299f4a985acea68aef65915dcf261cb2105c814709The adjacent jobs also resolved LinearSolve 4.3 and 5.0 respectively, so this is an exact failing-state boundary rather than a claim that the source diff was tested locally against an otherwise frozen GPU environment. The current failure uses LinearSolve 5.0.
Local validation
GROUP=Core NONLINEARSOLVE_TEST_GROUP=Core julia +1.12 --project=lib/NonlinearSolveBase -e 'using Pkg; Pkg.test()'(passed; workspace 52/52)GROUP=Core NONLINEARSOLVE_TEST_GROUP=Core julia +1.12 --project=lib/NonlinearSolveQuasiNewton -e 'using Pkg; Pkg.test()'(passed; Broyden 594/594, Klement 216/216, LimitedMemoryBroyden 99/99, and associated interface/termination tests)test/gpuenvironment (passed 2/2 for in-place/out-of-place residuals)julia +1.12 --project=../runic-format-env -m Runic --check .(passed)This machine has no functional CUDA driver (
CUDA.functional() == false), so the CuArray regression is intentionally asserted in the CUDA CI test rather than claimed as locally executed.