稠密和稀疏几何的Lattice-Boltzmann方法的面向数据语言实现
Data-Oriented Language Implementation of Lattice-Boltzmann Method for Dense and Sparse Geometries
摘要:
格子玻尔兹曼求解器实现的性能通常主要取决于存储器访问模式。实现高性能需要复杂的代码来处理仔细的数据放置和内存事务的排序。在这项工作中,我们分析了一种新的方法称为面向数据的语言,它允许复杂的内存访问模式与简单的源代码相结合的基础上实现的性能。作为一个用例,我们提出并提供了一个求解器的D2 Q9格的源代码,并显示其性能的GTX泰坦Xp GPU的密集和稀疏的几何形状高达4096 2节点。所得到的结果是有希望的,大约1000行代码使我们能够在最大理论内存带宽的0.6到0.7的范围内实现性能(对于双精度和单精度的,分别超过2.5和5.0 GLUPS),这接近于当前的最新技术水平。然而,我们还观察到相对高的并且有时难以预测的开销,特别是对于稀疏数据结构。另一个问题是编译时间相当长,这延长了短期模拟的时间,并且缺乏对低级优化机制的访问。
英文摘要:
The performance of lattice-Boltzmann solver implementations usually depends mainly on memory access patterns. Achieving high performance requires then complex code which handles careful data placement and ordering of memory transactions. In this work, we analyse the performance of an implementation based on a new approach called the data-oriented language, which allows the combining of complex memory access patterns with simple source code. As a use case, we present and provide the source code of a solver for D2Q9 lattice and show its performance on GTX Titan Xp GPU for dense and sparse geometries up to 4096 2 nodes. The obtained results are promising, around 1000 lines of code allowed us to achieve performance in the range of 0.6 to 0.7 of maximum theoretical memory bandwidth (over 2.5 and 5.0 GLUPS for double and single precision, respectively) for meshes of size above 1024 2 nodes, which is close to the current state-of-the-art. However, we also observed relatively high and sometimes difficult to predict overheads, especially for sparse data structures. The additional issue was also a rather long compilation, which extended the time of short simulations, and a lack of access to low-level optimisation mechanisms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。