迈向百亿亿次的高速湍流:STREAmS-2 移植与性能
High-speed turbulent flows towards the exascale: STREAmS-2 porting and performance
AI总结:
本文为STREAmS-2求解器新增AMD HIPFort后端并开发代码生成工具,在NVIDIA A100和AMD MI250x及欧洲前百亿亿次系统上验证其单GPU与大规模并行性能,证明其可高效支持超万亿网格点湍流模拟。
摘要:
百亿亿次高性能计算(HPC)为突破计算流体力学(CFD)的边界提供了巨大机遇,但尽管使用图形处理单元(GPU)已成为稳固趋势,可编程性仍然是一个问题。STREAmS-2(Bernardini 等,Comput. Phys. Commun. 285 (2023) 108644)是一个面向典型壁面约束湍流的可压缩求解器,能够充分发挥 NVIDIA GPU 的潜力。本文在已有的 CUDA Fortran 后端基础上,扩展了一个面向 AMD GPU 架构的新型 HIPFort 后端。文中讨论了主要实现策略,并介绍了一个新颖的 Python 工具,该工具可以生成 HIPFort 和 CPU 代码版本,使开发者只需专注于 CUDA Fortran 后端。针对当前多个 HPC 集群核心所采用的 NVIDIA A100 和 AMD MI250x 显卡,分析了单 GPU 性能。结果发现,NVIDIA 显卡上 GPU 峰值性能与 STREAmS-2 性能之间的差距通常更小。Roofline 分析将该行为归因于同一内核在两种显卡上表现出意料之外的不同计算强度。并行性能在欧洲最大的两个 EuroHPC 前百亿亿次系统 LUMI(AMD GPU)和 Leonardo(NVIDIA GPU)上进行了测试。强可扩展性显示,Leonardo 在最多 16 个节点上效率超过 80%,LUMI 在最多 32 个节点上效率超过 80%。弱可扩展性显示,在测试的最大节点数(LUMI 为 256,Leonardo 为 512)下,效率仍超过 95%,表现令人印象深刻。该分析表明,STREAmS-2 是充分挖掘欧洲当前前百亿亿次 HPC 系统算力的理想选择,使用户能够模拟超过一万亿个网格点的流动,从而缩小高保真模拟可达到的雷诺数与实际工程应用雷诺数之间的差距。
英文摘要:
Exascale High Performance Computing (HPC) represents a tremendous opportunity to push the boundaries of Computational Fluid Dynamics (CFD), but despite the consolidated trend towards the use of Graphics Processing Units (GPUs), programmability is still an issue. STREAmS-2 (Bernardini et al. Comput. Phys. Commun. 285 (2023) 108644) is a compressible solver for canonical wall-bounded turbulent flows capable of harvesting the potential of NVIDIA GPUs. Here we extend the already available CUDA Fortran backend with a novel HIPFort backend targeting AMD GPU architectures. The main implementation strategies are discussed along with a novel Python tool that can generate the HIPFort and CPU code versions allowing developers to focus their attention only on the CUDA Fortran backend. Single GPU performance is analysed focusing on NVIDIA A100 and AMD MI250x cards which are currently at the core of several HPC clusters. The gap between peak GPU performance and STREAmS-2 performance is found to be generally smaller for NVIDIA cards. Roofline analysis allows tracing this behavior to unexpectedly different computational intensities of the same kernel using the two cards. Parallel performance is measured on the two largest EuroHPC pre-exascale systems, LUMI (AMD GPUs) and Leonardo (NVIDIA GPUs). Strong scalability reveals more than 80% efficiency up to 16 nodes for Leonardo and up to 32 for LUMI. Weak scalability shows an impressive efficiency of over 95% up to the maximum number of nodes tested (256 for LUMI and 512 for Leonardo). This analysis shows that STREAmS-2 is the perfect candidate to fully exploit the power of current pre-exascale HPC systems in Europe, allowing users to simulate flows with over a trillion mesh points, thus reducing the gap between the Reynolds numbers achievable in high-fidelity simulations and those of real engineering applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。