Pause Next phase Cache Primal Project + auxiliary Dual Residual Check + restart SpeedSlow Normal Fast
πMPC ADMM schedule and GPU work allocation Six stages execute primal, projection and auxiliary, and dual updates in parallel. Dashed diagonal arrows show next-stage cached reads and previous-stage new-state reads. A global residual reduction precedes stopping and acceleration or restart. The side panel shows device-array work tiles, cooperative thread blocks, reductions and the host decision. GPU block layout is illustrative, not measured. πMPC Parallel-in-horizon ADMM Parallel stage updates · ordered phases · shared global check ALGORITHM 1 Prediction horizon Six-stage example Stage 1 Stage 2 Stage 3 Stage 4 Stage 5 Stage 6 terminal Cached iterate Auxiliary + dual 1 Primal Input + state 2 Projection Then auxiliary 3 Dual Three consistency terms Next-stage cache → local state Previous new state → local projection Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment Terminal state Projection ↓ Auxiliary State copy Input map Dynamics Measured state + previous input 4 Global residual reduction Converged? Acceleration / restart Continue with the next iterate Return control solution Yes No Next iteration Dashed diagonals: neighboring-stage reads. All blocks in an active row update in parallel. GPU WORK ALLOCATION Read device arrays Matrix products · cuBLAS Projection → auxiliary kernels Elementwise dual kernels GPU reductions → one scalar Host decision → device update Stage columns × vector components 1 2 3 4 5 6 … B0 B1 B2 B3 B4 B5 Example tiles over the device arrays Thread blocks on GPU schematic B0 B1 B2 B3 B4 B5 Cells: cooperative thread work CUDA/cuBLAS selects the actual tiling. r1 r2 r3 r4 r5 r6 + + + Global residual Host: stop / restart decision Allocation and timing are illustrative. SOLARIS / Algorithm 1, πMPC v2 Six visible stages · no one-stage/one-thread assumption
πMPC ADMM schedule and GPU work allocation Six stages execute primal, projection and auxiliary, and dual updates in parallel. Dashed diagonal arrows show next-stage cached reads and previous-stage new-state reads. A global residual reduction precedes stopping and acceleration or restart. The side panel shows device-array work tiles, cooperative thread blocks, reductions and the host decision. GPU block layout is illustrative, not measured. πMPC Parallel-in-horizon ADMM Parallel stage updates · ordered phases · shared global check ALGORITHM 1 Prediction horizon Six-stage example Stage 1 Stage 2 Stage 3 Stage 4 Stage 5 Stage 6 terminal Cached iterate Auxiliary + dual 1 Primal Input + state 2 Projection Then auxiliary 3 Dual Three consistency terms Next-stage cache → local state Previous new state → local projection Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment State Projection ↓ Auxiliary State copy Input map Dynamics Auxiliary Dual Input increment Terminal state Projection ↓ Auxiliary State copy Input map Dynamics Measured state + previous input 4 Global residual reduction Converged? Acceleration / restart Continue with the next iterate Return control solution Yes No Next iteration Dashed diagonals: neighboring-stage reads. All blocks in an active row update in parallel. GPU WORK ALLOCATION Read device arrays Matrix products · cuBLAS Projection → auxiliary kernels Elementwise dual kernels GPU reductions → one scalar Host decision → device update Stage columns × vector components 1 2 3 4 5 6 … B0 B1 B2 B3 B4 B5 Example tiles over the device arrays Thread blocks on GPU schematic B0 B1 B2 B3 B4 B5 Cells: cooperative thread work CUDA/cuBLAS selects the actual tiling. r1 r2 r3 r4 r5 r6 + + + Global residual Host: stop / restart decision Allocation and timing are illustrative. SOLARIS / Algorithm 1, πMPC v2 Six visible stages · no one-stage/one-thread assumption
Sources: Algorithm 1 · πMPC v2 · Julia GPU implementation . Six stages are shown explicitly. Work tiles and thread-block sizes are schematic; the implementation delegates allocation to CUDA/cuBLAS. Playback is an algorithm explanation, not a runtime profile.