Alya迈向Exascale:GPU上Navier-Stokes有限元组装的最优OpenACC性能
Alya towards Exascale: Optimal OpenACC Performance of the Navier-Stokes Finite Element Assembly on GPUs
AI总结:
本文通过代码特化、算法重构和底层优化相结合,并借助Roofline性能建模,为Alya不可压缩流动模块的有限元组装实现了基于OpenACC的CPU/GPU统一高效实现,在A100 GPU上性能提升超50倍。
摘要:
本文解决了为CPU和GPU架构提供可移植且高效代码结构的挑战。我们选择在高性能计算力学代码Alya的不可压缩流动模块中组装右端项,Alya是统一欧洲基准套件中两个CFD代码之一。从一个高效的CPU代码和一个相关的GPU OpenACC移植版本出发,我们逐步研究了由代码特化、算法重构和底层优化带来的性能潜力。我们证明,只有结合这些不同维度的运行时优化,才能充分释放GPU和CPU上的全部性能潜力。在此过程中应用了基于Roofline的性能建模,我们证明,如果达到了经典Roofline极限(如内存带宽利用率),需要研究新的优化策略,而不是停止优化过程。最终的基于OpenACC的统一实现将NVIDIA A100 GPU上的性能提升了50倍以上(达到约2.5 TF/s FP64),并将基于Intel Icelake的CPU节点性能进一步提升了5倍(达到约1.0 TF/s FP64)。我们在手动方法中获得的见解为在Alya和其他应用中为相关内核实现统一且仍然高效的代码结构奠定了基础。这些可以通过手动编码或自动代码生成框架来实现。
英文摘要:
This paper addresses the challenge of providing portable and highly efficient code structures for CPU and GPU architectures. We choose the assembly of the right-hand term in the incompressible flow module of the High-Performance Computational Mechanics code Alya, which is one of the two CFD codes in the Unified European Benchmark Suite. Starting from an efficient CPU-code and a related OpenACC-port for GPUs we successively investigate performance potentials arising from code specialization, algorithmic restructuring and low-level optimizations. We demonstrate that only the combination of these different dimensions of runtime optimization unveils the full performance potential on the GPU and CPU. Roofline-based performance modelling is applied in this process and we demonstrate the need to investigate new optimization strategies if a classical roofline limit such as memory bandwidth utilization is achieved, rather than stopping the process. The final unified OpenACC-based implementation boosts performance by more than 50x on an NVIDIA A100 GPU (achieving approximately 2.5 TF/s FP64) and a further factor of 5x for an Intel Icelake based CPU-node (achieving approximately 1.0 TF/s FP64). The insights gained in our manual approach lays ground implementing unified but still highly efficient code structures for related kernels in Alya and other applications. These can be realized by manual coding or automatic code generation frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。