Repository navigation
Use converged solves for QNDF/QBDF in the GPU DAE comparison - #4869
Merged
ChrisRackauckas merged 1 commit intoOct 14, 2026
Merged
Conversation
At default tolerances QNDF's variable-order controller amplifies roundoff to O(reltol) on this DAE: on CPU alone, perturbing u0 or p by 1e-14 relative moves the QNDF solution by 2.4e-3 and fails GPU_MATCH_TOL, and QBDF sits at 0.8-1.4e-3. Any CUDA/CUDSS/LinearSolve roundoff change therefore flips "QNDF [*, diag_cu]" to gpu_mismatch; it has failed on every master push since 2026-09-25. With reltol=1e-8, abstol=1e-6 the same perturbations stay at ~1e-5. The match gate is unchanged. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <[email protected]> Agent-Harness: Devin CLI 3000.11.3 Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium Agent-Session: local headless run, log /Users/chrisrackauckas/sandbox/master/fusion-invest/ode-gpu-qndf-mass/log.txt
ChrisRackauckas
marked this pull request as ready for review
October 14, 2026 12:04
This was referenced Oct 16, 2026
xtalax
added a commit
to xtalax/OrdinaryDiffEq.jl
that referenced
this pull request
Oct 17, 2026
…DAE comparison (SciML#4869) fixes
xtalax
added a commit
to xtalax/OrdinaryDiffEq.jl
that referenced
this pull request
Oct 17, 2026
…DAE comparison (SciML#4869) fixes
xtalax
added a commit
to xtalax/OrdinaryDiffEq.jl
that referenced
this pull request
Oct 17, 2026
…DAE comparison (SciML#4869) fixes
xtalax
added a commit
to xtalax/OrdinaryDiffEq.jl
that referenced
this pull request
Oct 17, 2026
…DAE comparison (SciML#4869) fixes
xtalax
added a commit
to xtalax/OrdinaryDiffEq.jl
that referenced
this pull request
Oct 17, 2026
…DAE comparison (SciML#4869) fixes
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.
This fixes a failure on the default branch's CI. The diagnosis and the evidence below come from the investigating agent's report; "confirmed by running" and "read in logs" are kept apart there.
tests / GPU (julia 1, self-hosted Linux X64 gpu) / Tests - GPU (Julia 1)failing on PRs 4605/4611/4612/4613The error (read in logs)
Each failing job ends with
Some tests did not pass: 170 passed, 3 failed, 0 errored, 12 broken.The three failures are all intest/gpu/dae_tests.jl:481(r.status === :pass, evaluatedgpu_mismatch === pass):The QNDF solution on the GPU differs from the CPU QNDF solution by about 2e-3. The test's gate is
GPU_MATCH_TOL = (atol = 1e-3, rtol = 1e-3). The numbers are bit-identical in every failing run listed below: the four PRs, unrelated PRs, and master. That holds across both V100 and T4 runners.Failing runs on the affected PRs:
Evidence for PREEXISTING
Read in logs
CI.yml,on: push: branches: [master]). The GPU job has failed on every completed master push run since 2026-09-25 19:01Z. Runs that showed no GPU job were cancelled or superseded by concurrency. The latest master run (ab07f5d, the current HEAD of this clone) fails with the same three QNDF mismatches and the same numbers:QNDF / CSCfailed (gpu_abs 2.04e-3). PR 4592 also changedcalc_dt_propose!inlib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl, snapping dt so thatt + dtis exact. That moved the CPU trajectory too: CPU QNDF error vs. reference went from 2.58e-3 to 1.45e-3. Dependency versions were essentially unchanged (only ArrayLayouts and LogExpFunctions moved).lib/OrdinaryDiffEqSDC/Project.toml. The resolved GPU stack changed, though: CUDA.jl 6.2→6.4, CUDSS 0.7→0.8, GPUCompiler 1→2, LinearSolve 5.18.1→5.18.2. At that point every BDF GPU-vs-CPU difference went from ~0 to ~1e-8. FBDF and ABDF2 stayed at 1e-8. QNDF amplified it to 2e-3 on all three variants, and QBDF reached 9.08e-4, just under the gate.Confirmed by running (local, CPU only, Julia 1.13.0, repo master libs)
I ran
scratch/qndf_sensitivity.jl(output inscratch/qndf_sensitivity.out). It solves the same DAE asdae_tests.jlon the CPU twice, the second time with a perturbation of 1e-14 relative, and applies the test's own gate:At default tolerances (
reltol=1e-3), QNDF's variable-order controller turns roundoff into O(reltol) differences on this problem: 30 vs. 33 accepted steps. A gate of 1e-3 cannot pass reliably, and the GPU mismatch is that roundoff sensitivity. A GPU code bug would not explain this, because the CPU alone fails the same gate under a 1e-14 perturbation. I could not run the GPU test itself (no NVIDIA GPU here).Fix
test/gpu/dae_tests.jl:solve_kwargsnow givesQNDFandQBDFthe same converged-solve tolerances (reltol = 1e-8, abstol = 1e-6) that the Hairer4/Hairer42 CSC cases already use (the #4437 precedent). The pass gateGPU_MATCH_TOLis unchanged. QBDF is included because at default tolerances it sits at 0.9–1.4e-3 and would be the next case to flip.typos: clean. The file parses.Affected PRs and how
Recommended action
fix/ode-gpu-qndf-massand confirm on the self-hosted GPU runner. If QNDF still mismatches with converged tolerances, the residual would point to a real GPU-path difference in QNDF and would need further investigation.Links
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (fix), Claude Code 2.1.285 (PR) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium / claude-opus-5-5
Conversation: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master)
🤖 Generated with Claude Code