TL;DR
This paper presents optimized parallel implementations for solving Lyapunov, algebraic Riccati, and differential Riccati equations on modern multi-core and many-core (GPU) architectures. The authors demonstrate that commodity hardware can now efficiently tackle large-scale problems previously requiring clusters, offering a compelling alternative to traditional parallel libraries.
What Problem Does This Paper Address?
In control theory, solving matrix equations like Lyapunov and Riccati equations is crucial for tasks such as model-order reduction and optimal control. These equations often involve dense matrices, and their solutions can be computationally expensive, especially for large systems (n > 1000). Historically, solving these problems on parallel architectures relied on message-passing libraries like PLiC and PLiCMR, which can be complex to use and require access to clusters. The advent of powerful multi-core CPUs and GPUs has opened new avenues for high-performance computing. This paper addresses the challenge of efficiently adapting and implementing solvers for these matrix equations on these modern, heterogeneous computing platforms, aiming to make high-performance solutions more accessible.
Methods
The core of the authors' approach is the matrix sign function method, a numerically reliable and scalable iterative technique for solving these matrix equations. The paper revisits and extends previous work by:
- Consolidating and updating results for Lyapunov, algebraic Riccati (ARE), and differential Riccati (DRE) equation solvers on multicore CPUs, hybrid CPU-GPU systems, and multi-GPU platforms.
- Extending single-precision (SP) experiments to double-precision (DP), which is critical for practical control theory applications. This involved careful optimization of parameters like block sizes and look-ahead strategies to manage the increased communication cost of DP data.
- Comparing the efficiency of solvers across different GPU generations (NVIDIA K20 vs. S2050) with varying core counts and frequencies.
- Developing a new ARE solver that leverages multiple GPUs on a hybrid platform.
The paper details specific algorithms for each equation type:
- GECLNC for Lyapunov equations, using a rank-revealing QR (RRQR) decomposition.
- GECRSG for AREs, which involves computing the sign function of a Hamiltonian matrix.
- ROS1 for DREs, which reduces the problem to a Lyapunov equation.
A key implementation detail is the use of Gauss-Jordan elimination (GJE) for matrix inversion, which is more amenable to parallelization than traditional LU factorization. The paper discusses parallel implementations for:
- Multicore processors: Leveraging multi-threaded BLAS libraries.
- Hybrid CPU-GPU systems: Offloading data-parallel computations (like matrix-matrix products) to the GPU while keeping CPU-bound tasks (like panel factorization) on the CPU. Techniques like padding, look-ahead, and recursive blocking are employed.
- Hybrid multi-GPU systems: Extending CPU-GPU approaches to multiple GPUs, addressing challenges in load balancing and data transfers with a block cyclic data distribution.
Datasets
The paper evaluates the performance of their solvers using three benchmark problems from the Oberwolfach Model Reduction Benchmark Collection:
- STEELS: A system with n=1,357.
- STEELL: A system with n=5,177.
- FLOW_METER: A system with n=9,669.
These benchmarks are used to test the scalability and efficiency of the implemented solvers across different problem sizes and architectures.
Key Insights and Ideas
- Commodity hardware is powerful: The paper strongly demonstrates that modern desktop systems with multi-core CPUs and GPUs possess sufficient computational power to solve large-scale matrix equations (n ≈ 5,000-10,000) efficiently, making specialized clusters less necessary for many applications.
- Matrix sign function as a unifying tool: The matrix sign function proves to be a versatile and effective building block for parallelizing solutions across different types of matrix equations (Lyapunov, ARE, DRE) and various hardware architectures.
- Double-precision is feasible and necessary: Extending the solvers to double-precision was achievable with careful tuning, highlighting its importance for practical control theory problems and the trade-offs involved in communication costs.
- GPU architecture matters: The performance comparison between NVIDIA K20 and S2050 reveals that the number of computational units (K20) is more beneficial for larger problems, while higher clock speeds (S2050) offer advantages for smaller ones.
- Hybrid approaches offer significant speedups: Hybrid CPU-GPU implementations provide substantial performance gains (up to 4.4x faster than CPU-only for the largest problem) over multicore solutions, though memory limitations on single GPUs can be a constraint for very large problems.
Key Results
- Lyapunov solvers (GECLNC): The GPU-based variants achieved significant speedups, with GECLNC_GPU being up to 4.4x faster than GECLNC_CPU for the largest problem (FLOW_METER). GECLNC_MGPU showed advantages for smaller problems but lagged slightly for the largest one due to the K20's higher core count. Overall GPU-based variants showed gains between 1.85x and 4.4x.
- ARE solvers (GECRSG): GECRSG_GPU achieved the best results for STEELS and STEELL, outperforming CPU and multi-GPU versions. For FLOW_METER, GECRSG_MGPU achieved a 4.5x speedup over the CPU version, as the problem exceeded the memory capacity of the K20 GPU.
- DRE solvers (ROS1): ROS1_GPU consistently outperformed ROS1_MC, with ROS1_MGPU being slightly slower than ROS1_GPU for the largest problem but still significantly faster than the multicore version.
Limitations and Future Work
- GPU Memory Limitations: The paper notes that the applicability of single-GPU hybrid implementations is limited by GPU memory size. Multi-GPU implementations partially overcome this by aggregating memory, but this can introduce additional complexity in load balancing and data transfers.
- Problem Size vs. Architecture: The performance comparison between K20 and S2050 highlights that the optimal architecture (more cores vs. higher frequency) depends on the problem size.
- Future Work: While not explicitly detailed, the success of these implementations suggests future work could focus on further optimizing multi-GPU communication, exploring mixed-precision techniques for even greater performance, and extending these parallel solvers to other related matrix equations or control problems. The authors also suggest that these methods are appealing candidates to complement or replace more complex message-passing libraries.
Summary updated