arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1309.1983cs.DCcs.PF
收藏

Kepler架构nVidia GPUs上格子Boltzmann解算器的内存传输优化

Memory transfer optimization for a lattice Boltzmann solver on Kepler architecture nVidia GPUs

Mark Mawson, Alistair Revell

摘要:

求解流体流动的Lattice Boltzmann方法(LBM)由于局部操作在算法中的普遍性,自然非常适合于大规模并行计算的有效实现。本文介绍并分析了一个三维格子玻尔兹曼求解器的性能,优化第三代nVidia GPU硬件,也被称为“开普勒”。我们提供了一个审查以前的优化策略和分析数据读/写时间为不同的内存类型。在LBM中,时间传播步骤(称为流式传输)涉及将数据转移到相邻位置,并且是并行性能的核心;在这里,我们将研究三种使用不同硬件选项的方法。其中两个利用了GPU的“性能增强”功能;共享内存和基于开普勒的GPU中的新洗牌指令。这些与标准的数据传输相比,后者依赖于优化的存储来增加合并访问。结果表明,更简单的方法是最有效的,因为需要大量的寄存器,每个线程在LBM限制了块的大小,从而降低了这些特殊功能的效率。详细的结果,获得了D3 Q19 LBM求解器,这是基准上的nVidia K5000 M和K20 C GPU。在后一种情况下,探索了只读数据缓存的使用,并实现了每秒超过1036百万次晶格更新(MLUPS)的峰值性能。还报告了求解器性能中出现的周期性瓶颈,据信与硬件相关;迭代时间的峰值发生在两个GPU的频率约为11 Hz,与问题的大小无关。

英文摘要:

The Lattice Boltzmann method (LBM) for solving fluid flow is naturally well suited to an efficient implementation for massively parallel computing, due to the prevalence of local operations in the algorithm. This paper presents and analyses the performance of a 3D lattice Boltzmann solver, optimized for third generation nVidia GPU hardware, also known as `Kepler'. We provide a review of previous optimisation strategies and analyse data read/write times for different memory types. In LBM, the time propagation step (known as streaming), involves shifting data to adjacent locations and is central to parallel performance; here we examine three approaches which make use of different hardware options. Two of which make use of `performance enhancing' features of the GPU; shared memory and the new shuffle instruction found in Kepler based GPUs. These are compared to a standard transfer of data which relies instead on optimised storage to increase coalesced access. It is shown that the more simple approach is most efficient; since the need for large numbers of registers per thread in LBM limits the block size and thus the efficiency of these special features is reduced. Detailed results are obtained for a D3Q19 LBM solver, which is benchmarked on nVidia K5000M and K20C GPUs. In the latter case the use of a read-only data cache is explored, and peak performance of over 1036 Million Lattice Updates Per Second (MLUPS) is achieved. The appearance of a periodic bottleneck in the solver performance is also reported, believed to be hardware related; spikes in iteration-time occur with a frequency of around 11Hz for both GPUs, independent of the size of the problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑