基于Regent的异构HPC平台并行无网格LSKUM求解器
Regent based parallel meshfree LSKUM solver for heterogenous HPC platforms
AI总结:
本文开发了基于Regent语言的二维无粘可压缩流并行无网格LSKUM求解器,通过标准测试用例和基准模拟验证了其准确性,并详细比较了其在CPU和A100 GPU上相对于CUDA-C和Fortran+MPI实现的计算效率与可扩展性。
摘要:
Regent是一种隐式并行编程语言,允许为针对CPU和GPU的异构平台开发单一代码库。本文介绍了用Regent开发用于二维无粘可压缩流的并行无网格求解器。该无网格求解器基于最小二乘运动迎风方法(LSKUM)。文中展示了示例代码,以说明GPU节点上无网格求解器的Regent与CUDA-C实现之间的差异。对于CPU并行计算,详细介绍了Regent和Fortran+MPI代码如何处理数据通信与同步。通过将Regent求解器应用于无粘流的标准测试用例对其进行验证。在从粗糙到极细的点分布上进行了基准模拟,以评估求解器的性能。将Regent求解器在A100 GPU上的计算效率与用CUDA-C编写的等效无网格求解器进行了比较。随后对代码进行了性能分析,以研究其性能差异。将Regent求解器在CPU核心上的性能与基于MPI的等效显式并行Fortran无网格求解器进行了比较。可扩展性结果为性能分析提供了深入见解。
英文摘要:
Regent is an implicitly parallel programming language that allows the development of a single codebase for heterogeneous platforms targeting CPUs and GPUs. This paper presents the development of a parallel meshfree solver in Regent for two-dimensional inviscid compressible flows. The meshfree solver is based on the least squares kinetic upwind method. Example codes are presented to show the difference between the Regent and CUDA-C implementations of the meshfree solver on a GPU node. For CPU parallel computations, details are presented on how the data communication and synchronisation are handled by Regent and Fortran+MPI codes. The Regent solver is verified by applying it to the standard test cases for inviscid flows. Benchmark simulations are performed on coarse to very fine point distributions to assess the solver's performance. The computational efficiency of the Regent solver on an A100 GPU is compared with an equivalent meshfree solver written in CUDA-C. The codes are then profiled to investigate the differences in their performance. The performance of the Regent solver on CPU cores is compared with an equivalent explicitly parallel Fortran meshfree solver based on MPI. Scalability results are shown to offer insights into performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。