###
计算机系统应用英文版:2025,34(4):248-255
本文二维码信息
码上扫一扫!
基于Kokkos框架的CFD求解器性能可移植性分析
(南京航空航天大学 航空学院, 南京 210016)
Performance Portability Analysis of CFD Solver Based on Kokkos
(College of Aerospace Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 449次   下载 874
Received:October 07, 2024    Revised:October 21, 2024
中文摘要: 为提高计算流体力学的求解速度, 一般采用并行执行的方法, 然而由于计算硬件架构和编程语言的多样性, 对程序的可移植性带来了挑战. 为此本文使用Kokkos框架实现了计算流体力学求解器的异构并行计算, 并且使用规约法、原子操作和染色法来处理并行计算过程中的数据冲突问题, 提出了基于此框架下的异构并行计算的数据冲突的算法实现方案. 针对图形处理器的架构特点, 分析了不同硬件上单精度和双精度计算的加速比, 得出了不同计算硬件上的最优并行策略. 研究证明使用原子操作单精度计算对于使用图形处理器加速流体力学计算而言, 能够极大地提升求解效率.
Abstract:To accelerate the solution of computational fluid dynamics (CFD), parallel execution is commonly used. However, the diversity of computing hardware architectures and programming languages poses challenges to program portability. In this study, the Kokkos framework is used to implement heterogeneous parallel CFD computing. Moreover, the reduction method, atomic operations, and the coloring approach are employed to address data conflicts in the process of parallel computing. A specific algorithmic solution for data conflict in heterogeneous parallel computing under this framework is proposed. Given the architectural characteristics of the graphics processing unit (GPU), the speedup ratios of single-precision and double-precision calculations on different hardware are analyzed, and optimal parallel strategies on different computing hardware are obtained. The study demonstrates that using atomic operations for single-precision computations on GPUs significantly enhances CFD solving efficiency.
文章编号:     中图分类号:    文献标志码:
基金项目:国家自然科学基金委员会联合基金 (U20A2070); 江苏省高校优势学科建设工程
引用文本:
王辰,陈龙.基于Kokkos框架的CFD求解器性能可移植性分析.计算机系统应用,2025,34(4):248-255
WANG Chen,CHEN Long.Performance Portability Analysis of CFD Solver Based on Kokkos.COMPUTER SYSTEMS APPLICATIONS,2025,34(4):248-255