非结构化间断Galerkin求解器在多核和众核架构下的性能优化与分析
Performance optimization and analysis of the unstructured Discontinuous Galerkin solver on multi-core and many-core architectures
摘要:
间断Galerkin(DG)算法是计算流体力学(CFD)领域中一种具有代表性的高阶方法,具有高分辨率、低耗散、低色散等数学优势。然而,DG是相当计算密集,以证明实际的工程问题。本文讨论了我们的内部实际DG应用程序在三种不同的编程模型,以及一些优化技术,包括网格重新编号和混合精度,以最大限度地提高性能在一个单一的节点系统的实施。在CPU和GPU上的实验结果表明,基于CUDA、OpenACC和OpenMP的代码与原始应用程序的串行执行相比,分别获得了42.9倍、35.3倍和8.1倍的最大加速比。此外,我们系统地比较了两个方面的编程模型:性能和生产力。我们的实证结论有助于程序员根据其目标应用选择合适的平台和合适的编程模型。
英文摘要:
The discontinuous Galerkin (DG) algorithm is a representative high order method in Computational Fluid Dynamics (CFD) area which possesses considerable mathematical advantages such as high resolution, low dissipation, and dispersion. However, DG is rather computationally intensive to demonstrate practical engineering problems. This paper discusses the implementation of our in-house practical DG application in three different programming models, as well as some optimization techniques, including grid renumbering and mixed precision to maximize the performance improvements in a single node system. The experiment on CPU and GPU shows that our CUDA, OpenACC, and OpenMP-based code obtains a maximum speedup of 42.9x, 35.3x, and 8.1x compared with serial execution by the original application, respectively. Besides, we systematically compare the programming models in two aspects: performance and productivity. Our empirical conclusions facilitate the programmers to select the right platform with a suitable programming model according to their target applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。