面向稀疏复杂几何的大规模格子玻尔兹曼方法的架构特定生成
Architecture Specific Generation of Large Scale Lattice Boltzmann Methods for Sparse Complex Geometries
AI总结:
该研究提出一种用于格子玻尔兹曼方法的稀疏/间接寻址数据结构,集成到代码生成流水线和WALBERLA框架中,经优化后在多类GPU上实现高可扩展性,在多孔介质流动等三类真实场景中最高提速2倍、内存消耗降低75%。
摘要:
我们实现并分析了一种用于格子玻尔兹曼方法(Lattice Boltzmann Method)的稀疏/间接寻址数据结构,旨在为计算域内存在大量非流体节点的流体动力学问题(例如多孔介质流动)提供高效的计算内核。该数据结构被集成到代码生成流水线中,可支持多种模板和碰撞算子的稀疏格子玻尔兹曼方法,并能为CPU以及AMD和NVIDIA加速卡生成高效的内核代码。我们通过就地流传输模式优化这些稀疏内核,以减少内存访问量和内存消耗,并实现了通信隐藏技术以验证可扩展性。我们给出了单GPU性能结果,其带宽利用率最高可达最大带宽的99%。我们将优化后的生成内核集成到高性能框架WALBERLA中,在现代高性能计算(HPC)系统上,最多扩展至1024块NVIDIA A100 GPU和4096块AMD MI250X GPU时,扩展效率至少达到82%。此外,我们构建了三种不同的应用场景,针对真实演示问题测试该稀疏数据结构,分别为多孔介质流动、颗粒床上方的自由流动以及冠状动脉内的血液流动,并给出了对应的性能结果。在这些应用中,与直接寻址数据结构相比,采用稀疏/间接寻址数据结构可实现最高2倍的性能加速,且内存消耗显著降低,降幅最高达75%。
英文摘要:
We implement and analyse a sparse / indirect-addressing data structure for the Lattice Boltzmann Method to support efficient compute kernels for fluid dynamics problems with a high number of non-fluid nodes in the domain, such as in porous media flows. The data structure is integrated into a code generation pipeline to enable sparse Lattice Boltzmann Methods with a variety of stencils and collision operators and to generate efficient code for kernels for CPU as well as for AMD and NVIDIA accelerator cards. We optimize these sparse kernels with an in-place streaming pattern to save memory accesses and memory consumption and we implement a communication hiding technique to prove scalability. We present single GPU performance results with up to 99% of maximal bandwidth utilization. We integrate the optimized generated kernels in the high performance framework WALBERLA and achieve a scaling efficiency of at least 82% on up to 1024 NVIDIA A100 GPUs and up to 4096 AMD MI250X GPUs on modern HPC systems. Further, we set up three different applications to test the sparse data structure for realistic demonstrator problems. We show performance results for flow through porous media, free flow over a particle bed, and blood flow in a coronary artery. We achieve a maximal performance speed-up of 2 and a significantly reduced memory consumption by up to 75% with the sparse / indirect-addressing data structure compared to the direct-addressing data structure for these applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。