Repository navigation
test: verify adaptive callback endpoints against analytic state - #594
ChrisRackauckas-Claude wants to merge 3 commits into
Conversation
Check both solver endpoints against the exact state after the third bounce for the single-callback and callback-set paths. 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-luna Agent-Job: 540-codex Agent-Session: local session 01a21369-fd6d-7af0-a69c-c178f17a3b06 (no session URL)
The master CUDA run failed the adaptive GPUVern7 endpoint comparisons twice at The callback test passed 24/24 on the CPU kernel backend with Julia 1.12.7 and 1.13.0. CUDA execution was unavailable locally; the underlying Julia/dependency trigger for the historical CUDA event-time difference remains unidentified. 🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6-luna |
PR: #594 Reviewed head: 8c4da99 Risk assessment
Review reportVERDICT: CHANGES Risklow (L2: adds independent numerical assertions to an existing test) Blocking findings
Non-blocking findingsNone. What I ran
What I did not verifyExecution of the strengthened assertions on a native CUDA device remains unverified. AUTHOR_GRADE: {"task":"test","score":5,"difficulty":2,"rounds":1,"author_harness":"Codex CLI 0.170.0","author_model":"gpt-6-luna","note":"The independent endpoint checks pass on CPU and JLArrays and reject a shared callback error that pairwise comparison accepts. Native CUDA verification remains outstanding."} Head link: 8c4da99 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Master's #596 runs test/enzyme/cuda_records.jl in its own CUDACore environment, which fixes the CUDA Tests (Julia 1) error zero(::Type{EnzymeAllocationRecord}) that this branch inherited. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.333 Agent-Model: claude-opus-5-5 Agent-Job: SciML__DiffEqGPU.jl__594--20261201T171313Z-claude-claude-opus-5-5 Agent-Session: local session a3aff483-3cb0-4960-904b-2a2910cd8bdc (no session URL)
The downgraded CPU tests resolved OrdinaryDiffEqCore 4.17.4, whose adaptive Float32 Vern9 reference fails the existing GPUVern9 comparison on some CPUs. Master requires 4.18.1 in the test environment. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.337 Agent-Model: claude-opus-5-5 Agent-Job: SciML__DiffEqGPU.jl__594--20261205T011952Z-claude-claude-opus-5-5 Agent-Session: local session bbdc458b-8079-419a-a34d-220c788d7c13 (no session URL)
At
t=16, the analytic bouncing-ball state is[25, 20]. The adaptive continuous-callback tests now check both the CPU reference and kernel ensemble endpoints against that state, while retaining the solver-to-solver comparison for both a single callback and a callback set.Part of #540.
Verification
Failing before: the master CUDA run reported failures at test lines 117 and 135. Both evaluated to
59.99492f0 < 0.01; the testset had 43 passed and 2 failed. The endpointt=15is the third impact, where velocity jumps from-30to+30.Passing after: ran the callback test file against the CPU kernel backend in an isolated test environment resolving DiffEqGPU to this checkout.
The PR CUDA run advanced through the callback test section, including GPUVern7 adaptive callback and callback-set cases, and failed later in
test/enzyme/cuda_records.jl:9withMethodError: no method matching zero(::Type{EnzymeAllocationRecord}). The latest default-branch CUDA run reports the same error, so this failure is reproducible on the base branch.Static checks completed without findings:
Historical environment isolation
The green and red CUDA runs changed Julia 1.12.7→1.13.0 and DiffEqBase 7.20.1→7.21.1, SciMLBase 3.53.1→3.53.3, and OrdinaryDiffEqCore 4.17.0→4.17.1 together. I held the c040 solver source and each dependency set fixed while comparing those Julia versions on
EnsembleGPUKernel(CPU()). GPUVern7 and the Vern7 reference remained on the same side of the impact in all four CPU runs; the CUDA mismatch was not reproduced. This does not isolate the CUDA trigger.rack colab usagereturnedColab ADC is missing. See docs/colab.md., so no CUDA hardware run was possible.Not verified
t=15remains unidentified.Reviewer callout
Please assess whether the existing
0.01endpoint bound is appropriate for the CUDA backend as well as the CPU reproduction.Risk assessment
t=15; callback section completed in the PR CUDA run; callback test passed 24/24 on the CPU backend for Julia 1.12.7 and 1.13.0. A separate c040 CPU comparison did not reproduce the CUDA GPUVern7 side-of-impact mismatch under either historical dependency pin set.🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6-luna
Conversation: local session 01a21369-fd6d-7af0-a69c-c178f17a3b06 (no session URL)
Fix by Claude Code 2.1.333 claude-opus-5-5 (head 47046e8)
Changed: merged
master(95d626c, #596) into the branch with a normal merge commit. The PR's own diff againstmasteris still the 5-line change totest/gpu_kernel_de/gpu_ode_continuous_callbacks.jl. No test edits were made.CUDA Tests (Julia 1) regression. At 8c4da99 the only failure was
test/enzyme/cuda_records.jl:9, which raisedMethodError: no method matching zero(::Type{EnzymeAllocationRecord}). The "Enzyme ensemble gradients" wrapper then errored as a consequence. The same error was onmasterbefore #596. #596 runs that test in its own CUDACore environment, andmaster's CUDA job at 95d626c passes (Allocate records6/6 for each shape, and all fourEnzyme ensemble gradientsvariants):https://github.com/SciML/DiffEqGPU.jl/actions/runs/46094776580/job/141917919387. The merge brings that fix into this branch.
Review P1 (verify the new assertions on CUDA). This is already answered by the CUDA run at the reviewed head 8c4da99, https://github.com/SciML/DiffEqGPU.jl/actions/runs/45653803775/job/139344973704. Its
Callbackstestset, which includesgpu_kernel_de/gpu_ode_continuous_callbacks.jl, reported:master's CUDA run at 95d626c reportsCallbacks | 45 45. The difference of 8 is exactly the eight added endpoint assertions: two per algorithm pair and callback form. All eight passed on a native CUDA device within1.0e-2of[25, 20].Validation (local, at 47046e8)
The local QA failure is environmental. The host's load average was about 400 during the run.
git diff upstream/master -- src ext Project.tomlis empty, so the package code under QA is byte-identical tomaster. CI'stests / QA (julia 1)passed on this PR at 8c4da99.Not verified
master, where CI passed.Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Claude Code 2.1.333 · model: claude-opus-5-5
Conversation: local fixer job SciML__DiffEqGPU.jl__594--20261201T171313Z-claude-claude-opus-5-5 (no session URL)
Fix by Claude Code 2.1.337 claude-opus-5-5 (head 393d0f9)
Changed: merged
master(38b47b3) into the branch with a normal merge commit. No test, tolerance or compat entry was edited by hand. The PR's own diff againstmasteris still the 5-line change totest/gpu_kernel_de/gpu_ode_continuous_callbacks.jl.Downgrade CPU failure: not caused by this PR's assertions. The failing job failed at
test/gpu_kernel_de/gpu_ode_regression.jl:46, an existing Vern9 comparison. The file this PR edits only runs whenGROUP == "CUDA", so its assertions never ran in that job.Cause: the test environment's lower bound was too low. It resolved OrdinaryDiffEqCore 4.17.4. #591, now on
master, requires 4.18.1 and explains why. The merge brings that bound in.The same failure, with the same value, occurs without this PR's change:
masterat 95d626c (below). CI passed on that commit with the same Core 4.17.4, so the result depends on the machine. I did not identify the CI runners' CPUs.Validation (local)
The downgrade runs used Julia 1.10.12, with
julia-downgrade-compatat the commit and arguments CI used, then:The other checks ran at 393d0f9 with Julia 1.12.7:
Not verified
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Claude Code 2.1.337 · model: claude-opus-5-5
Conversation: local session bbdc458b-8079-419a-a34d-220c788d7c13 (no session URL)