Skip to content

Stabilize Hairer GPU DAE comparisons - #4437

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:codex/gpu-hairer-csc-accuracy
Aug 30, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:codex/gpu-hairer-csc-accuracy

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Important

Ignore this PR until it has been reviewed by @ChrisRackauckas.

What changed and why

The GPU DAE compatibility matrix deterministically fails only the Hairer4 and Hairer42 CSC/Krylov rows because default integration accuracy amplifies CPU/GPU roundoff beyond the existing comparison threshold. This applies reltol = 1e-8, abstol = 1e-6 equally to the CPU and GPU solves for those two rows, while leaving GPU_MATCH_TOL = (atol = 1e-3, rtol = 1e-3) and every assertion unchanged.

The mismatch first became visible in 5a2cb94, when #4026 restored the intended Hairer stage predictor and changed these cases from CPU Unstable skips into successful solves.

Failing before

The latest equivalent GPU job on the unfixed code fails the same two rows:
https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/33270493344/job/99148058794

[116/144] Hairer4 [jac=CSC, mass=diag_cu] ... ✗ gpu mismatch
[119/144] Hairer42 [jac=CSC, mass=diag_cu] ... ✗ gpu mismatch
GPU Tests | 158 pass, 2 fail, 12 broken, 172 total

A CPU perturbation diagnostic shows why default tolerances are not stable enough for this comparison:

Method Default exact error Tight exact error Default one-ULP drift Tight one-ULP drift
Hairer4 7.2797e-3 6.0799e-4 6.6250e-3 1.9763e-8
Hairer42 5.5456e-3 5.1777e-4 4.1888e-3 4.4616e-8

Passing after

The final pushed head (5f6ce493ebb0c1be409e7543866923c1e4871dd6) passed both formerly failing rows:
https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/33308865121/job/99265102818

[116/144] Hairer4 [jac=CSC, mass=diag_cu] ... ✓
[119/144] Hairer42 [jac=CSC, mass=diag_cu] ... ✓
GPU Tests | 160 pass, 12 broken, 172 total

The complete final-head CI workflow passed 45 of 45 jobs, and all ten substantive final-head workflows completed successfully:
https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/33308865121

Local focused regression:

Newton-Krylov round-off reproducibility (Hairer4)  | 3 pass / 3 total
Newton-Krylov round-off reproducibility (Hairer42) | 3 pass / 3 total

Root QA:

Quality Assurance Tests | 106 pass / 106 total
Testing OrdinaryDiffEq tests passed

Static validation:

julia +1.12 --startup-file=no -m Runic --check test/gpu/dae_tests.jl  # exit 0
typos test/gpu/dae_tests.jl                                           # exit 0
git diff --check                                                      # exit 0

The focused regression command exited 0. GROUP=QA exited 0.

Not verified locally

  • A full GROUP=Regression_I run reached the repository's 3600-second local timeout in the pre-existing hard_dae.jl:244 case before the focused Newton-Krylov file; no assertion failure was observed, but this is not reported as a passing full group.
  • GPU hardware and prerelease environments were verified by the successful PR workflow rather than locally.

Reviewer judgment

The judgment call is the case-specific solve tolerance. The patch changes solution accuracy for only the two Hairer CSC/Krylov matrix rows; it does not loosen the CPU/GPU match threshold or suppress a failure.

🤖 Generated with Codex (version unknown) (model: GPT-5). Session: unknown

@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the codex/gpu-hairer-csc-accuracy branch from 0720d0d to 47670d5 Compare August 30, 2026 09:36
Use tighter solve tolerances for the Hairer4 and Hairer42 CSC/Krylov cases so the GPU compatibility check compares numerically converged CPU and GPU solutions without loosening the match threshold.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Agent-Harness: Codex (version unknown)
Agent-Model: GPT-5
Agent-Session: unknown
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the codex/gpu-hairer-csc-accuracy branch from 47670d5 to 5f6ce49 Compare August 30, 2026 11:24
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 30, 2026 12:53
@ChrisRackauckas
ChrisRackauckas merged commit 666e7fc into SciML:master Aug 30, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants