SOLARIS · πMPC

ADMM schedule & GPU work allocation

πMPC ADMM schedule and GPU work allocationSix 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.πMPCParallel-in-horizon ADMMParallel stage updates · ordered phases · shared global checkALGORITHM 1Prediction horizonSix-stage exampleStage 1Stage 2Stage 3Stage 4Stage 5Stage 6terminalCached iterateAuxiliary + dual1 PrimalInput + state2 ProjectionThen auxiliary3 DualThree consistency termsNext-stage cache→ local statePrevious new state→ local projectionAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementTerminal stateProjection↓AuxiliaryState copyInput mapDynamicsMeasured state+ previous input4 Global residual reductionConverged?Acceleration / restartContinue with the next iterateReturn control solutionYesNoNext iterationDashed diagonals: neighboring-stage reads. All blocks in an active row update in parallel.GPU WORK ALLOCATIONRead device arraysMatrix products · cuBLASProjection → auxiliary kernelsElementwise dual kernelsGPU reductions → one scalarHost decision → device updateStage columns × vector components123456…B0B1B2B3B4B5Example tiles over the device arraysThread blocks on GPUschematicB0B1B2B3B4B5Cells: cooperative thread workCUDA/cuBLAS selects the actual tiling.r1r2r3r4r5r6+++Global residualHost: stop / restart decisionAllocation and timing are illustrative.SOLARIS / Algorithm 1, πMPC v2Six visible stages · no one-stage/one-thread assumption
πMPC ADMM schedule and GPU work allocationSix 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.πMPCParallel-in-horizon ADMMParallel stage updates · ordered phases · shared global checkALGORITHM 1Prediction horizonSix-stage exampleStage 1Stage 2Stage 3Stage 4Stage 5Stage 6terminalCached iterateAuxiliary + dual1 PrimalInput + state2 ProjectionThen auxiliary3 DualThree consistency termsNext-stage cache→ local statePrevious new state→ local projectionAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementTerminal stateProjection↓AuxiliaryState copyInput mapDynamicsMeasured state+ previous input4 Global residual reductionConverged?Acceleration / restartContinue with the next iterateReturn control solutionYesNoNext iterationDashed diagonals: neighboring-stage reads. All blocks in an active row update in parallel.GPU WORK ALLOCATIONRead device arraysMatrix products · cuBLASProjection → auxiliary kernelsElementwise dual kernelsGPU reductions → one scalarHost decision → device updateStage columns × vector components123456…B0B1B2B3B4B5Example tiles over the device arraysThread blocks on GPUschematicB0B1B2B3B4B5Cells: cooperative thread workCUDA/cuBLAS selects the actual tiling.r1r2r3r4r5r6+++Global residualHost: stop / restart decisionAllocation and timing are illustrative.SOLARIS / Algorithm 1, πMPC v2Six visible stages · no one-stage/one-thread assumption
πMPC ADMM schedule and GPU work allocationSix 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.πMPCParallel-in-horizon ADMMParallel stage updates · ordered phases · shared global checkALGORITHM 1Prediction horizonSix-stage exampleStage 1Stage 2Stage 3Stage 4Stage 5Stage 6terminalCached iterateAuxiliary + dual1 PrimalInput + state2 ProjectionThen auxiliary3 DualThree consistency termsNext-stage cache→ local statePrevious new state→ local projectionAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementStateProjection↓AuxiliaryState copyInput mapDynamicsAuxiliaryDualInput incrementTerminal stateProjection↓AuxiliaryState copyInput mapDynamicsMeasured state+ previous input4 Global residual reductionConverged?Acceleration / restartContinue with the next iterateReturn control solutionYesNoNext iterationDashed diagonals: neighboring-stage reads. All blocks in an active row update in parallel.GPU WORK ALLOCATIONRead device arraysMatrix products · cuBLASProjection → auxiliary kernelsElementwise dual kernelsGPU reductions → one scalarHost decision → device updateStage columns × vector components123456…B0B1B2B3B4B5Example tiles over the device arraysThread blocks on GPUschematicB0B1B2B3B4B5Cells: cooperative thread workCUDA/cuBLAS selects the actual tiling.r1r2r3r4r5r6+++Global residualHost: stop / restart decisionAllocation and timing are illustrative.SOLARIS / Algorithm 1, πMPC v2Six 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.