Skip to content

Add independent adaptive GPUTsit5 to EnsembleGPUArray - #601

Draft
ChrisRackauckas wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas:ensemble-array-independent-adaptive
Draft

ChrisRackauckas wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas:ensemble-array-independent-adaptive

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)

GPUTsit5() with EnsembleGPUArray runs each explicit ODE with its own physical time, PI controller, and accept/reject decision. The device stages and current states use preallocated arrays. Each RHS receives column views, including in-place RHS functions with a runtime vector length. The high-level solve supports trajectory-local time spans and initial steps, saveat, and each lane's accepted step history. All lanes run on the chosen backend.

sol = solve(
    ensemble_prob, GPUTsit5(), EnsembleGPUArray(backend);
    trajectories = 10_000, abstol = 1.0e-6, reltol = 1.0e-3, saveat = 0.1
)

The array runner shares the Tsit5 tableau and interpolation coefficients with EnsembleGPUKernel, and retains FSAL data across bounded kernel launches. Each lane reports its own return code and statistics. The mode is for explicit ODEs with a common state vector length and scalar tolerances. The API docs describe the supported solver options.

Verification

  • On the base revision, the public GPUTsit5() plus EnsembleGPUArray regression errors with Default algorithm choices require DifferentialEquations.jl. In a separate CPU measurement, the shared controller took 13 steps per trajectory in an easy-only pair and 158 steps per trajectory when paired with a difficult one. The independent controller took 13 and 161 respectively in the mixed solve. The easy trajectory's accepted grid was identical to its grid in an easy-only batch. The regression also checks singleton equality and analytic endpoints.

  • The large-Float32 clock reproducer retried the same rounded time 25 times with zero accepted steps before the retry correction. It now takes 10 accepted steps and one rejected step. An interrupted endpoint-only solve saves the last accepted state at t = 0.2 along with the start.

  • Runic 1.13.0 under Julia 1.13.4, typos, and git diff --check passed.

  • The targeted CPU suite passed 67/67 on Julia 1.10.14, 1.12.7, and 1.13.4. The Julia 1.12.7 JLArrays run also passed 67/67. Linux Julia 1.13.2 on an RTX PRO 6000 passed the targeted GROUP=CUDA run of test/ensemblegpuarray_independent_adaptive.jl (67/67).

  • The full GROUP=CPU julia +release --project -e 'using Pkg; Pkg.test()' and GROUP=QA julia +release --project -e 'using Pkg; Pkg.test()' suites passed on Linux Julia 1.13.2.

  • The full julia +release --project=docs docs/make.jl build passed with CUDA on Linux Julia 1.13.2.

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)

Advance column-local clocks and PI controllers over preallocated GPU
stage buffers. Preserve each trajectory's accepted state and FSAL data
between bounded launches, and interpolate requested output in its
physical time. Cover independence, rounding, saved output, and failures
through the ensemble solve interface.

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