Repository navigation
Add independent adaptive GPUTsit5 to EnsembleGPUArray - #601
Draft
ChrisRackauckas wants to merge 1 commit into
Draft
ChrisRackauckas wants to merge 1 commit into
ChrisRackauckas wants to merge 1 commit into
Conversation
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
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.
GPUTsit5()withEnsembleGPUArrayruns 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.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()plusEnsembleGPUArrayregression errors withDefault 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-
Float32clock 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 att = 0.2along with the start.Runic 1.13.0 under Julia 1.13.4,
typos, andgit diff --checkpassed.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=CUDArun oftest/ensemblegpuarray_independent_adaptive.jl(67/67).The full
GROUP=CPU julia +release --project -e 'using Pkg; Pkg.test()'andGROUP=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.jlbuild 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)