Repository navigation
Support independent adaptive OrdinaryDiffEq ensembles - #603
Draft
ChrisRackauckas wants to merge 1 commit into
Draft
ChrisRackauckas wants to merge 1 commit into
ChrisRackauckas wants to merge 1 commit 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)
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.
solve(..., EnsembleGPUArray(backend); independent_adaptivity = true)runs an OrdinaryDiffEq integrator per trajectory. Each integrator controls its own physical time, error estimate, and step acceptance. Outstanding RHS, Jacobian, and time-gradient requests are evaluated in batches on the selected backend, including RHS evaluations with the scalar types used by ForwardDiff.OrdinaryDiffEq handles stiff linear solves and factorization reuse on the host. This opt-in path supports saved timesteps and
saveat, withdense = falseandcallback = nothing. It uses read-only trajectory parameters and common GPU-compatible RHS and derivative functions. Each stage batch transfers data between the host and device. Throughput has not been benchmarked.Verification
Unrecognized keyword arguments: [:independent_adaptivity]. On this branch, the mixed-rate regression checks that the difficult trajectory rejects steps and takes more accepted steps, the easy trajectory's saved time grid and states match its singleton solve, and the endpoints agree with separate OrdinaryDiffEq solves. The regression runsTsit5,Rosenbrock23,Rodas5P, andTRBDF2. Additional cases cover per-trajectory time spans, solver-generated derivatives, and cleanup after an RHS failure.typos, andgit diff --checkpassed.GROUP=CPUruns oftest/ensemblegpuarray_independent_ordinary.jlpassed 78/78 on Julia 1.10.14 and 1.12.7. TheGROUP=JLArraysrun passed 76/76 on Julia 1.12.7.GROUP=CUDA julia +release --project=<test environment> test/ensemblegpuarray_independent_ordinary.jlpassed 76/76 on an RTX PRO 6000 with Julia 1.13.2.GROUP=CUDA julia +release --project -e 'using Pkg; Pkg.test()'run passed the new test set and stopped intest/gpu_kernel_de/stiff_ode/gpu_ode_regression.jlwithOut of GPU memoryon the shared device. An isolated run of that test file reached the same error on both the base commit and this branch.GROUP=CPU julia +release --project -e 'using Pkg; Pkg.test()'andGROUP=QA julia +release --project -e 'using Pkg; Pkg.test()'runs passed on Linux Julia 1.13.2.julia +release --project=docs docs/make.jlbuild passed with CUDA on Linux Julia 1.13.2.FBDF()andAutoTsit5(Rodas5P())on Julia 1.12.7.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)