Repository navigation
Honor per-trajectory timesteps in EnsembleGPUArray - #599
Draft
ChrisRackauckas wants to merge 2 commits into
Draft
ChrisRackauckas wants to merge 2 commits into
ChrisRackauckas wants to merge 2 commits into
Conversation
Honor the dt supplied on each trajectory problem and batch trajectories with a shared physical time grid. Preserve output order and propagate explicit adaptive settings to CPU solves. 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)
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)
Member
Author
Aligned the indentation with CI's Runic 1.13.0. The whole-repository format check passed locally. The independent adaptive implementation is in a separate draft. Independent adaptive stepping 🤖 Posted by an AI agent — harness: Codex Desktop 0.173.0-alpha.4.1 · model: gpt-6.2-sol |
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.
EnsembleGPUArraygroups ODE trajectories by the physicaldtandtspanreturned byprob_func. Each group uses one OrdinaryDiffEq solver and one controller. The ensemble presents trajectory outputs in their original order. A scalardtpassed directly tosolvetakes precedence. CPU offloads and the single-trajectory path receive explicitadaptivesettings.A small set of repeated timesteps retains large GPU batches. Each distinct
(tspan, dt)pair needs its own solve within a batch. For fully independent adaptive stepping with compatible methods, useEnsembleGPUKernel.Verification
Julia 1.12.7 CPU regression using
test/ensemblegpuarray_trajectory_dt.jland theOrdinaryDiffEqTsit5Tsit5entry point. The base revision reported22 passed, 17 failedin the first testset. A trajectory requesting1/16ran on the1/8grid. The patch reported39/39in the first testset and8/8for differing spans. The tests compare the saved time grids and states against standalone solves and cover CPU offload, the one-trajectory path, and backwards integration.Runic,
typos, andgit diff --checkpassed.GROUP=CPU julia +release --project -e 'using Pkg; Pkg.test()'passed on Linux with Julia 1.13.2, including 47/47 assertions in the new test file. The targeted Julia 1.12.7 JLArrays run also passed 47/47. The targetedGROUP=CUDArun on an RTX PRO 6000 passed 47/47.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 full
julia +release --project=docs docs/make.jlbuild exited successfully on Linux with Julia 1.13.2 and CUDA. Documenter rendered the updated manual and resolved the new cross-reference.In a fixed-step CPU-backed solve of 64 scalar decay equations, grouping cut trajectory RHS evaluations from 49,216 to 16,960. The maximum absolute endpoint error was
2.08e-11with grouping and6.11e-16with the smallest timestep applied to all trajectories. The grouped solve useddt = 1/16for 48 trajectories with rate-1anddt = 1/128for 16 trajectories with rate-20on[0, 1].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)