Skip to content

Scale explicit ODE time gradients on affine ensemble clocks - #600

Draft
ChrisRackauckas wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas:fix/ensemble-array-normalized-time-gradient
Draft

ChrisRackauckas wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas:fix/ensemble-array-normalized-time-gradient

Conversation

@ChrisRackauckas

@ChrisRackauckas ChrisRackauckas commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

🚧 UNREVIEWED — awaiting review by @ChrisRackauckas. Filed by an AI agent running as @ChrisRackauckas; Chris has not seen this.
Harness: Codex Desktop 0.173.0-alpha.4.1 · Model: gpt-6.2-sol
Conversation: local session 01a23c8e-a01f-7d51-8ec1-ea0e28a2e418 (no session URL)

With heterogeneous ODE time spans, the array solver integrates g(u, τ) = Δt * f(u, t₀ + Δt * τ). An explicit physical-time derivative f_t must be multiplied twice by Δt to evaluate g_τ. This applies in both the in-place and out-of-place kernels. Multiplying the derivative by Δt twice keeps the intermediate product representable whenever the final result is representable, including the Float32 regression cases.

Verification

  • Julia 1.12.7, CPU backend, test/ensemblegpuarray_implicit_jac.jl affine time-gradient regression. The base revision reported 12 passed, 6 failed. One Rosenbrock23 trajectory ended at 0.45806843 versus 0.4586559 in the standalone solve with the corresponding physical timestep. The patch reported 18/18.

  • Julia 1.12.7, Float32 normalized kernels. Forming the square first yielded Inf32 and 0.0f0 for representable gradients of about 1.0e4 and 1.0e-16. The ordered products passed 4/4 across both kernel forms.

  • Runic, typos, and git diff --check passed.

  • GROUP=CPU julia +release --project -e 'using Pkg; Pkg.test()' passed on Linux with Julia 1.13.2, including 76/76 assertions in the implicit-method test group.

  • GROUP=QA julia +release --project -e 'using Pkg; Pkg.test()' passed on Linux with Julia 1.13.2 (27/27 QA and 75/75 JET). The targeted GROUP=CUDA run of test/ensemblegpuarray_implicit_jac.jl passed 76/76 on an RTX PRO 6000.

Links


🤖 Posted by an AI agent — harness: Codex Desktop 0.173.0-alpha.4.1 · model: gpt-6.2-sol
Conversation: local session 01a23c8e-a01f-7d51-8ec1-ea0e28a2e418 (no session URL)

Apply both chain-rule factors to user-supplied time gradients so stiff
EnsembleGPUArray solves match a per-trajectory physical clock. Multiply
by the duration twice to preserve representable floating-point results.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex Desktop 0.173.0-alpha.4.1
Agent-Model: gpt-6.2-sol
Agent-Session: local session 01a23c8e-a01f-7d51-8ec1-ea0e28a2e418 (no session URL)

This branch has not been deployed

No deployments
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.

1 participant