[Paper Review] Modeling and analyzing performance for highly optimized propagation steps of the lattice Boltzmann method on sparse lattices
This paper proposes a two-stage optimization strategy for lattice Boltzmann method (LBM) solvers on sparse lattices, combining reduced indirect addressing (RIA) to lower loop balance and a hybrid enumeration approach (Hilbert curve followed by lexicographic sorting) to minimize communication overhead while preserving single-core performance. The method achieves up to 40% energy savings by enabling lower clock frequencies and reduced core counts without sacrificing performance.
Computational fluid dynamics (CFD) requires a vast amount of compute cycles on contemporary large-scale parallel computers. Hence, performance optimization is a pivotal activity in this field of computational science. Not only does it reduce the time to solution, but it also allows to minimize the energy consumption. In this work we study performance optimizations for an MPI-parallel lattice Boltzmann-based flow solver that uses a sparse lattice representation with indirect addressing. First we describe how this indirect addressing can be minimized in order to increase the single-core and chip-level performance. Second, the communication overhead is reduced via appropriate partitioning, but maintaining the single core performance improvements. Both optimizations allow to run the solver at an operating point with minimal energy consumption.
Motivation & Objective
- To reduce memory bandwidth pressure and loop balance in LBM solvers using sparse lattice representations.
- To improve single-core performance by minimizing indirect addressing through RIA, especially in complex geometries.
- To reduce communication overhead in large-scale MPI-parallel simulations without degrading single-core efficiency.
- To eliminate the need for manual tuning of partitioning parameters by introducing an automated, geometry-agnostic two-stage enumeration method.
- To achieve minimal energy consumption by enabling operation at lower frequencies and reduced core counts while maintaining high performance.
Proposed method
- Applying Reduced Indirect Addressing (RIA) to skip indirect memory accesses when consecutive fluid nodes form contiguous runs, reducing loop balance.
- Using run-length encoding principles to identify and optimize contiguous node sequences in the adjacency list for RIA.
- Implementing a two-stage enumeration: first using a space-filling curve (e.g., Hilbert) for compact partitioning, then renumbering with lexicographic sorting (B=1) for high single-core performance.
- Enabling partial vectorization in the AA-pattern algorithm via RIA, particularly for odd time steps, improving instruction-level parallelism.
- Evaluating performance and energy efficiency on Intel Haswell and SuperMUC-2 clusters across varying process counts and clock frequencies.
- Using ILBDC as the base solver framework to integrate and benchmark RIA and the dual-enumeration method.
Experimental results
Research questions
- RQ1Can RIA reduce loop balance and improve performance in LBM propagation steps on sparse lattices?
- RQ2How does RIA enable partial vectorization in the AA-pattern, and what performance impact does this have?
- RQ3Can a two-stage enumeration method (Hilbert + lexicographic sorting) achieve both low communication volume and high single-core performance without manual tuning?
- RQ4What is the energy efficiency gain when operating at lower clock frequencies (e.g., 1.2 GHz) with optimized enumeration and RIA?
- RQ5To what extent can the number of active cores per node be reduced without performance loss, and how does this affect energy consumption?
Key findings
- RIA reduced loop balance and delivered a 15% performance improvement in the two-grid one-step algorithm with non-temporal stores (OS-NT).
- The AA-pattern with RIA enabled partial vectorization of the odd time step, increasing performance by up to 30% at 1.2 GHz, especially in structured geometries.
- The two-stage enumeration method (Hilbert then lexicographic sorting) achieved performance comparable to manually tuned lexicographic sorting with B=100, eliminating the need for geometry-specific parameter tuning.
- Energy savings of up to 40% were achieved by combining Hilbert renumbering with operation at 1.2 GHz, without performance degradation.
- Reducing processes per node from 28 to 16 had no performance impact, confirming that only 3–4 cores are needed to saturate performance, enabling further energy savings.
- The method’s performance is robust across different clock frequencies and scales efficiently, with energy savings increasing in simpler, more regular geometries due to higher vectorization gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.