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

高阶MPI-Kokkos加速流体求解器的性能研究

Performance of a high-order MPI-Kokkos accelerated fluid solver

Université Côte d’Azur(蔚蓝海岸大学);Observatoire de la Côte d’Azur(蔚蓝海岸天文台);CNRS(法国国家科学研究中心);Laboratoire Lagrange(拉格朗日实验室)

Filipp Sporykhin, Holger Homann

AI总结:

本文评估了基于MPI-Kokkos的高阶间断伽辽金流体求解器,发现高阶格式计算更快,GPU在大规模模拟中优于CPU,但存在能效反弹效应。

摘要:

本文讨论了在现代高性能计算架构上用于流体动力学问题的现代数值方案的性能。我们的代码实现了一种空间节点间断伽辽金格式,并测试至八阶收敛精度。在时间上,它与最高六阶的龙格-库塔方法系列耦合。该代码在一维、二维和三维中集成了线性平流方程以及等温欧拉方程。为了面向涉及众核中央处理器和图形处理器等加速器的现代硬件,我们使用Kokkos库结合消息传递接口,在多种GPU系统上运行我们的单一源代码。我们发现阶数越高,代码运行越快。八阶模拟达到给定的全局误差所需的计算时间远少于三阶或四阶模拟。龙格-库塔方案对代码性能的影响较小,经典的四阶方案通常是一个不错的选择。该代码在所有考虑的GPU上表现良好。多CPU性能也非常出色,并且使用MPI在多达数百个CPU核心上观察到完美的弱扩展性。我们注意到,小网格尺寸的模拟在CPU上比在GPU上更快,而对于涉及超过$10^7$自由度(约$3100^2$个网格点)的模拟,GPU明显优于CPU。在数值模拟的环境影响方面,我们估计对于大网格尺寸的模拟,GPU比CPU消耗更少的能量,但在小网格上消耗更多能量。我们观察到一种趋势:GPU越现代,为了有效使用它,所需的网格就越大。这产生了反弹效应,因为更大的模拟需要更长的计算时间,进而消耗更多能量,而这并未被新型GPU的能效提升所补偿。

英文摘要:

This work discusses the performance of a modern numerical scheme for fluid dynamical problems on modern high-performance computing architectures. Our code implements a spatial nodal discontinuous Galerkin scheme that we test up to an order of convergence of eight. It is temporally coupled to a set of Runge-Kutta methods of orders up to six. The code integrates the linear advection equations as well as the isothermal Euler equations in one, two, and three dimensions. In order to target modern hardware involving many-core Central Processing Units and accelerators such as Graphic Processing Units we use the Kokkos library in conjunction with the Message Passing Interface to run our single source code on various GPU systems. We find that the higher the order the faster is the code. Eighth-order simulations attain a given global error with much less computing time than third- or fourth-order simulations. The RK scheme has a smaller impact on the code performance and a classical fourth-order scheme seems to generally be a good choice. The code performs very well on all considered GPUs. The many-CPU performance is also very good and perfect weak scaling is observed up to many hundreds of CPU cores using MPI. We note that small grid-size simulations are faster on CPUs than on GPUs while GPUs win significantly over CPUs for simulations involving more than $10^7$ degrees of freedom ($\approx 3100^2$ grid points). When it comes to the environmental impact of numerical simulations we estimate that GPUs consume less energy than CPUs for large grid-size simulations but more energy on small grids. We observe a tendency that the more modern is the GPU the larger needs to be the grid in order to use it efficiently. This yields a rebound effect because larger simulations need longer computing times and in turn more energy that is not compensated by the energy efficiency gain of the newer GPUs.

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

↑