arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00656math.NAcs.NA
收藏

三维非结构网格上多GPU加速的高阶气体动理学格式

Multiple-GPU accelerated high-order gas-kinetic scheme on three-dimensional unstructured meshes

Yuhang Wang, Waixiang Cao, Liang Pan

AI总结:

本文针对三维非结构网格上的高阶气体动理学格式(HGKS),提出基于CUDA的单GPU单元级并行实现以及结合METIS区域分解和MPI通信的多GPU加速框架,并在Nvidia GPU上取得最高9倍加速和良好可扩展性。

摘要:

近年来,高阶气体动理学格式(HGKS)在非结构网格上求解可压缩流动已经取得了成功。为了加速计算,本文基于计算统一设备架构(CUDA)在图形处理单元(GPU)上实现了HGKS。非结构网格上的HGKS是一种全显式格式,其加速框架可以基于单元级并行来构建。对于单GPU计算,为了满足数据局部化和独立性的要求,需要生成几何信息的连接关系。基于这样的数据结构,设置CUDA的内核及相应的网格。通过单元索引与CUDA线程之间的一一映射,可以实现HGKS在单GPU上使用CUDA进行计算。对于多GPU计算,需要考虑区域分解和数据交换。计算区域通过METIS分解为若干子区域,并创建MPI进程来控制每个进程以及GPU之间的通信。通过重建连接关系并添加虚拟单元,单GPU的CUDA主要配置可以被每个GPU继承。本文给出了可压缩流动的基准算例,包括精度测试和绕过球体的流动,以评估HGKS在Nvidia RTX A5000和Tesla V100 GPU上的数值性能。对于单GPU计算,与在Intel Xeon Gold 5120 CPU上使用OpenMP指令运行的并行中央处理器(CPU)代码相比,RTX A5000实现了5倍加速,Tesla V100实现了9倍加速。对于多GPU计算,HGKS代码随着GPU数量的增加具有良好的可扩展性。数值结果证实了多GPU加速的HGKS在非结构网格上的优异性能。

英文摘要:

Recently, successes have been achieved for the high-order gas-kinetic schemes (HGKS) on unstructured meshes for compressible flows. In this paper, to accelerate the computation, HGKS is implemented with the graphical processing unit (GPU) using the compute unified device architecture (CUDA). HGKS on unstructured meshes is a fully explicit scheme, and the acceleration framework can be developed based on the cell-level parallelism. For single-GPU computation, the connectivity of geometric information is generated for the requirement of data localization and independence. Based on such data structure, the kernels and corresponding girds of CUDA are set. With the one-to-one mapping between the indices of cells and CUDA threads, the single-GPU computation using CUDA can be implemented for HGKS. For multiple-GPU computation, the domain decomposition and data exchange need to be taken into account. The domain is decomposed into subdomains by METIS, and the MPI processes are created for the control of each process and communication among GPUs. With reconstruction of connectivity and adding ghost cells, the main configuration of CUDA for single-GPU can be inherited by each GPU. The benchmark cases for compressible flows, including accuracy test and flow passing through a sphere, are presented to assess the numerical performance of HGKS with Nvidia RTX A5000 and Tesla V100 GPUs. For single-GPU computation, compared with the parallel central processing unit (CPU) code running on the Intel Xeon Gold 5120 CPU with open multi-processing (OpenMP) directives, 5x speedup is achieved by RTX A5000 and 9x speedup is achieved by Tesla V100. For multiple-GPU computation, HGKS code scales properly with the increasing number of GPU. Numerical results confirm the excellent performance of multiple-GPU accelerated HGKS on unstructured meshes.

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

↑