Repository navigation
Use finite differences for GPU Newton tests - #244
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Keep ForwardDiff coverage for CPU tests while selecting the GPU-compatible finite-difference Jacobian backend for NewtonRaphson. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.150.1 Agent-Model: unknown Agent-Session: local session ID 01a0441e-3d2f-7170-ab6e-58ef72975a9f
ChrisRackauckas-Claude
force-pushed
the
fix/gpu-newton-autodiff
branch
from
August 27, 2026 21:38
b4e0f6c to
c927b18
Compare
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
The GPU layer-test matrix now configures
NewtonRaphsonwithAutoFiniteDiff, while the CPU matrix retains its existingAutoForwardDiff(chunksize=12)coverage. Assertions guard both backend choices.ForwardDiff seeds dual arrays through scalar indexing, which is unsupported for CUDA arrays. NonlinearSolve uses
AutoFiniteDifffor the same Newton CUDA coverage. This is intentionally separate from #243 and should be reviewed and landed with or after that prerequisite.Ignore this PR until it has been reviewed by @ChrisRackauckas.
Failing before
With the old GPU configuration retained, the new regression assertion failed:
The runtime symptom is independently visible as 12
GPUArraysCorescalar-indexing errors fromForwardDiff._seed_zero_partials!andSciMLBase.NonlinearFunctionin the GPU job for #243:https://github.com/SciML/DeepEquilibriumNetworks.jl/actions/runs/33104383320/job/98635451731
Passing after
Not verified locally
No NVIDIA GPU is available on this host, so the full CUDA matrix was not run locally. GPU CI on this branch may remain blocked by the clean-main SteadyStateAdjoint failure until #243 lands.
The 36 cuDNN execution errors in that job are a separate forward-convolution/runtime problem in an untouched path. A standalone Lux/NNlib/CUDA reproducer was identified, but it cannot be verified on this host without a GPU, so no upstream issue was filed.
🤖 Generated with Codex CLI 0.150.1 (model: unknown; session: local session ID 01a0441e-3d2f-7170-ab6e-58ef72975a9f)