Repository navigation
Enable vector time for adaptive OrdinaryDiffEq ensembles - #604
ChrisRackauckas wants to merge 4 commits into
Conversation
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)
Initialize an ODEProblem with the backend's start and end vectors. Advance it with solve! and read per-trajectory statistics from Core. 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)
The follow-up commit constructs a standard Links🤖 Posted by an AI agent — harness: Codex Desktop 0.173.0-alpha.4.1 · model: gpt-6.2-sol |
Evaluate the ordinary ForwardDiff path through the existing device RHS. Cover coupled nonautonomous trajectories, staggered spans, and both in-place and out-of-place RHS functions with default Rodas5P. 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)
The follow-up commit tests the default The paired integration file passed 139/139 on CPU and 133/133 on CUDA on a Jetson AGX Orin. Registry-only CI still needs the companion package releases. Links🤖 Posted by an AI agent — harness: Codex Desktop 0.173.0-alpha.4.1 · model: gpt-6.2-sol |
Configure the packed trajectory algorithm with SciMLBase.remake so OrdinaryDiffEq initializes its regular Rosenbrock cache and selects the backend factorization while retaining the default autodiff algorithm. 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 update puts the device factorization on 🤖 Posted by an AI agent — harness: Codex Desktop 0.173.0-alpha.4.1 · model: gpt-6.2-sol |
independent_adaptivity = truepacks eachEnsembleGPUArraybatch into anODEProblemwith device-backed start and end vectors. Standardinitandsolve!advance one OrdinaryDiffEq integrator per batch. Each trajectory has an independent physical clock, timestep, PI history, retry state, and save times.The mode supports
Tsit5andRodas5P, with a scalar or per-trajectory initialdt. It usesdense = falseandcallback = nothing. Requestedsaveattimes are step endpoints. Rodas5P uses an identity mass matrix. DiffEqGPU configures the packed algorithm'slinsolvewith the device factorization, and the regular Rosenbrock cache reuses the factors across a trial.Rodas5P()retains its defaultAutoForwardDiff()on the device RHS. Analyticjacandtgradare optional.Registry-only CI requires the companion OrdinaryDiffEq releases. OrdinaryDiffEqCore 4.21, OrdinaryDiffEqTsit5 2.2, and OrdinaryDiffEqRosenbrock 2.8 are absent from General. The paired environment develops both source branches directly.
Verification
The feature regression on the base commit errors with
Unrecognized keyword arguments: [:independent_adaptivity].In a paired source environment,
GROUP=CPU julia --project="$PAIRED_ENV" test/ensemblegpuarray_vector_time.jlpassed 139/139. The same command withGROUP=CUDApassed 133/133 on a Jetson AGX Orin. The tests cover default Rodas5P with both RHS forms, comparison to scalar references, independent retry grids, staggered endpoints, stiff failure isolation, and saved physical times.Runic, typos, and
git diff --checkpassed.The full
GROUP=CPUandGROUP=QAsuites passed withjulia --project="$PAIRED_ENV" -e 'using Pkg; Pkg.test("DiffEqGPU")'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)