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

基于GPU的非结构网格算法的并行化方法、语言和编译器比较

Comparison of Parallelisation Approaches, Languages, and Compilers for Unstructured Mesh Algorithms on GPUs

G. D. Balogh, I. Z. Reguly, G. R. Mudalige

摘要:

有效利用GPU在科学计算中越来越重要,因为许多当前和即将推出的超级计算机都是使用GPU构建的。为了促进这一点,有许多编程方法,如CUDA,OpenACC和OpenMP 4,支持不同的程序设计语言(主要是C/C++和Fortran)。还有几个编译器套件(clang,nvcc,PGI,XL),每个都支持不同的语言组合。在这项研究中,我们采取了一些目前可用的选项,并进行了全面的分析和比较,使用计算循环和应用程序从非结构化网格计算领域。除了运行时和性能指标(GB/s),我们还探讨了影响性能的因素,如寄存器计数、占用率、不同内存类型的使用情况、指令计数和算法差异。这项工作的结果显示了clang的CUDA编译器如何经常优于NVIDIA的nvcc,复杂内核上基于指令的方法的性能问题,以及clang和XL中成熟的OpenMP 4支持;目前比CUDA慢10%左右。

英文摘要:

Efficiently exploiting GPUs is increasingly essential in scientific computing, as many current and upcoming supercomputers are built using them. To facilitate this, there are a number of programming approaches, such as CUDA, OpenACC and OpenMP 4, supporting different programming languages (mainly C/C++ and Fortran). There are also several compiler suites (clang, nvcc, PGI, XL) each supporting different combinations of languages. In this study, we take a detailed look at some of the currently available options, and carry out a comprehensive analysis and comparison using computational loops and applications from the domain of unstructured mesh computations. Beyond runtimes and performance metrics (GB/s), we explore factors that influence performance such as register counts, occupancy, usage of different memory types, instruction counts, and algorithmic differences. Results of this work show how clang's CUDA compiler frequently outperform NVIDIA's nvcc, performance issues with directive-based approaches on complex kernels, and OpenMP 4 support maturing in clang and XL; currently around 10% slower than CUDA.

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

↑