Repository navigation
Scale explicit ODE time gradients on affine ensemble clocks - #600
Draft
ChrisRackauckas wants to merge 1 commit into
Draft
ChrisRackauckas wants to merge 1 commit into
ChrisRackauckas wants to merge 1 commit into
Conversation
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
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.
With heterogeneous ODE time spans, the array solver integrates
g(u, τ) = Δt * f(u, t₀ + Δt * τ). An explicit physical-time derivativef_tmust be multiplied twice byΔtto evaluateg_τ. This applies in both the in-place and out-of-place kernels. Multiplying the derivative byΔttwice 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.jlaffine time-gradient regression. The base revision reported12 passed, 6 failed. One Rosenbrock23 trajectory ended at0.45806843versus0.4586559in the standalone solve with the corresponding physical timestep. The patch reported18/18.Julia 1.12.7, Float32 normalized kernels. Forming the square first yielded
Inf32and0.0f0for representable gradients of about1.0e4and1.0e-16. The ordered products passed4/4across both kernel forms.Runic,
typos, andgit diff --checkpassed.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 targetedGROUP=CUDArun oftest/ensemblegpuarray_implicit_jac.jlpassed 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)