arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.03749cs.MScs.DC
收藏

基于GPU的局部优化非结构网格算法

Locality Optimized Unstructured Mesh Algorithms on GPUs

András Attila Sulyok, Gábor Dániel Balogh, István Zoltán Reguly, Gihan R. Mudalige

摘要:

基于非结构网格的数值算法,如有限体积和有限元算法,在许多科学和工程领域中形成了一类重要的应用。从这些应用程序中实现更高性能的关键困难是间接访问,这会导致并行化时的数据竞争。当前处理这种数据竞争的方法导致并行性降低和次优性能。特别是在现代众核架构(如GPU)上,增加核心/线程数量,减少数据移动和利用内存局部性对于获得良好的性能至关重要。在这项工作中,我们提出了新的本地化开发优化的非结构化网格算法在GPU上的有效执行。建立在一个两层的着色策略处理数据竞争,我们引入新的重新排序和分区技术,以进一步提高执行效率。然后将新的优化应用于几个成熟的非结构化网格应用程序,研究它们在NVIDIA最新的P100和V100 GPU上的性能。我们展示了显着的加速比($1.1\text{--}1.75\times$)相比,国家的最先进的。一系列的性能指标进行基准测试,包括运行时,内存事务,实现带宽性能,GPU占用和数据重用因素,并用于理解和解释影响性能的关键因素。优化算法实现为一个开源的软件库,我们说明了它的使用,以提高现有的或新的非结构化网格应用程序的性能。

英文摘要:

Unstructured-mesh based numerical algorithms such as finite volume and finite element algorithms form an important class of applications for many scientific and engineering domains. The key difficulty in achieving higher performance from these applications is the indirect accesses that lead to data-races when parallelized. Current methods for handling such data-races lead to reduced parallelism and suboptimal performance. Particularly on modern many-core architectures, such as GPUs, that has increasing core/thread counts, reducing data movement and exploiting memory locality is vital for gaining good performance. In this work we present novel locality-exploiting optimizations for the efficient execution of unstructured-mesh algorithms on GPUs. Building on a two-layered coloring strategy for handling data races, we introduce novel reordering and partitioning techniques to further improve efficient execution. The new optimizations are then applied to several well established unstructured-mesh applications, investigating their performance on NVIDIA's latest P100 and V100 GPUs. We demonstrate significant speedups ($1.1\text{--}1.75\times$) compared to the state-of-the-art. A range of performance metrics are benchmarked including runtime, memory transactions, achieved bandwidth performance, GPU occupancy and data reuse factors and are used to understand and explain the key factors impacting performance. The optimized algorithms are implemented as an open-source software library and we illustrate its use for improving performance of existing or new unstructured-mesh applications.

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

↑