Improved handling of trajectory failures and heterogeneous computation times in ensemble GPU solves
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 327
- Forks
- 42
- Avg merge
- 14h 13m
- Merged PRs (30d)
- 34
Description
Problem Description
Users running parameter sweeps with EnsembleGPUKernel are encountering challenges with trajectory failures and heterogeneous computational requirements across different parameter combinations. This is limiting the practical usability of GPU acceleration for ensemble simulations.
Key Issues
1. Trajectory Failures
Some parameter combinations cause GPU solver failures, likely due to overflow errors rather than divide-by-zero issues. Currently, there's no graceful way to handle these failures within DiffEqGPU.
2. Heterogeneous Computation Times
Not all trajectories require the same execution duration. Some parameter combinations complete quickly while others timeout, creating inefficiencies where the entire batch must wait for the slowest trajectory or fail entirely.
3. Performance Variability
GPU acceleration doesn't uniformly outperform CPU computation across all problem types, but there's no built-in mechanism to adaptively choose between GPU and CPU execution.
Current Workaround
From the Discourse thread (https://discourse.julialang.org/t/diffeqgpu-trajectory-failure-handling-and-heterogeneous-trajectories/129962/7), users are implementing bash-level wall-clock time limits:
"If the time limit is exceeded, I switch to running the batch on the CPU"
This hybrid approach can outperform pure GPU or pure CPU execution by:
- Leveraging GPU speed for tractable parameter combinations
- Falling back to CPU for problematic trajectories
- Working particularly well when problematic trajectories are relatively rare
Potential Solutions
- Built-in timeout handling: Allow individual trajectories to timeout and fallback to CPU execution automatically
- Trajectory-level error handling: Provide options to skip, retry on CPU, or handle failed trajectories without failing the entire ensemble
- Adaptive execution: Automatically route trajectories to GPU or CPU based on problem characteristics or runtime heuristics
- Better error reporting: Distinguish between different failure modes (overflow, convergence issues, etc.) to help users diagnose problems
Related Discussion
Full context: https://discourse.julialang.org/t/diffeqgpu-trajectory-failure-handling-and-heterogeneous-trajectories/129962/7
This affects users running large parameter sweeps where robustness and mixed GPU/CPU execution could significantly improve performance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the EnsembleGPUKernel entry point and read the linked Discourse discussion for the reported trajectory failures and heterogeneous runtimes. Clarify which failure modes, timeout behavior, CPU fallback, and adaptive execution are in scope; done requires an agreed design and corresponding implementation coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- hpc, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100