计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 324-332.doi: 10.11896/jsjkx.251200199
万朋1, 文敏华1, 程雨飞1, 李林颖2, 张斌2, 林新华1
WAN Peng1, WEN Minhua1, CHENG Yufei1, LI Linying2, ZHANG Bin2, LIN Xinhua1
摘要: 航空发动机燃烧室的高保真数值模拟因涉及多尺度物理化学过程,其严重的计算负载不均衡问题,对国产异构计算平台的高效利用构成了突出挑战。为此,基于燃烧反应的空间自适应解耦算法,完成了其向国产DCU平台的异构移植,并提出了系统的性能优化方案。具体而言,为应对子迭代步数不均衡问题,设计了基于排序的动态负载均衡策略;为缓解非结构化网格的访存瓶颈,实施了结合RCM(Reverse Cuthill-Mckee)网格重编号的全局内存合并访问优化,并改进了共享内存的数据布局以缓解Bank冲突;此外,通过HIP异步流与线程分支重组,进一步优化了指令执行效率。在单头部、旋转爆轰典型燃烧室构型上的实验结果表明,经协同优化后,算法在国产K100 DCU上的整体性能显著提升。相对于NVIDIA A100平台,其性能由优化前的51.4%和39.8%分别提升至67.2%和57.5%。对比分析揭示,国产平台对访存优化策略更为敏感,其平均性能增益较A100平台高出约20%。该研究验证了国产DCU应用于大规模燃烧模拟的可行性与优化路径,为计算流体力学程序在国产异构平台上的性能调优提供了参考。
中图分类号:
| [1] LI L,RONG C,HU S,et al.Intelligent variable strut for com-bustion performance optimization of a wide-range scramjet engine[J].International Journal of Hydrogen Energy,2024,49:1-13. [2] LI L,ZHANG B,LIU H.A spectral MUSCL scheme for gPC-Galerkin method to uncertain hyperbolic equations[J].AIP Advances,2023,13(2):025032. [3] LI L,ZHANG B,LIU H.Local sensitivity informed anisotropic sparse grid method for uncertainty quantification of chemical kinetics[J].AIP Advances,2023,13(7):075323. [4] LIU H,YIN Z,XIE W,et al.Numerical and analytical assessment of finite rate chemistry models for LES of turbulent premixed flames[J].Flow,Turbulence and Combustion,2022,109(2):435-458. [5] ZHANG C,WEN M H,ZHANG B,et al.A load-decouplingparallel strategy based on shared memory architecture for DSMC to simulate near-continuum gases[J].Computer Physics Communications,2022,279:108466. [6] GIULIANI A,KRIVODONOVA L.Face coloring in unstruc-tured CFD codes[J].Parallel Computing,2017,63:17-37. [7] WANG H,SHEEN D A.Combustion kinetic model uncertainty quantification,propagation and minimization[J].Progress in Energy and Combustion Science,2015,47:1-31. [8] LU T,LAW C K.Toward accommodating realistic fuel chemistry in large-scale computations[J].Progress in Energy and Combustion Science,2009,35(2):192-215. [9] DI RENZO M,FU L,URZAY J.HTR solver:An open-sourceexascale-oriented task-based multi-GPU high-order code for hypersonic aerothermodynamics[J].Computer Physics Communications,2020,255:107262. [10] CURTIS S,WAUGH H,DEAKIN T,et al.Mini-Combust—An Open-Source Unstructured FGM Combustion Mini-App for Co-Designing Aero-Engines at Extreme Scale[C]//2024 IEEE 31st International Conference on High Performance Computing,Data,and Analytics(HiPC).IEEE,2024:199-209. [11] URANAKARA H A,BARWEY S,PÉREZ F E H,et al.Acce-lerating turbulent reacting flow simulations on many-core/GPUs using matrix-based kinetics[J].Proceedings of the Combustion Institute,2023,39(4):5127-5136. [12] MOURE Á,SURAPANENI A,MIRA D.Optimized workloaddistribution for GPU-accelerated combustion simulations in he-terogeneous CPU-GPU architectures[J].Computers & Fluids,2025,320:106846. [13] RAO S,CHEN B,XU X.Heterogeneous CPU-GPU paralleliza-tion for modeling supersonic reacting flows with detailed chemical kinetics[J].Computer Physics Communications,2024,300:109188. [14] GAO F,REN H,REN Z,et al.Massive parallel simulation of gas turbine combustion using a fully implicit unstructured solver on the heterogeneous Sunway Taihulight supercomputer[J].Journal of Parallel and Distributed Computing,2025,199:105055. [15] WEN H,LUO F,XU S,et al.JANC:A cost-effective,differentiable compressible reacting flow solver featured with JAX-based adaptive mesh refinement[J].arXiv:2504.13750,2025. [16] MAO R Z,LIN M Q,ZHANG Y,et al.DeepFlame:A deeplearning empowered open-source platform for reacting flow si-mulations[J].Computer Physics Communications,2023,291:108842. [17] LIU Y,ZHOU W,YANG Y,et al.Numerical study on the instabilities in H2-air rotating detonation engines[J].Physics of Fluids,2018,30(4):046106. [18] BUSSING T R A,MURMAN E M.Finite-volume method forthe calculation of compressible chemically reacting flows[J].AIAA Journal,1988,26(9):1070-1078. [19] ZHANG B,WANG J H.A fraction step method based on adaptive reaction time step and its application for high-speed stiff reacting flows[J].Journal of Aeronautics,Astronautics and Aviation,2015,47(1):1-7. [20] KÉROMNÉS A,METCALFE W K,HEUFER K A,et al.Anexperimental and detailed chemical kinetic modeling study of hydrogen and syngas mixture oxidation at elevated pressures[J].Combustion and Flame,2013,160(6):995-1011. [21] HUGHES K J,FAIRWEATHER M,GRIFFTHS J F,et al.The application of the QSSA via reaction lumping for the reduction of complex hydrocarbon oxidation mechanisms[J].Proceedings of the Combustion Institute,2009,32(1):543-551. [22] ZENG M,YUAN W,WANG Y,et al.Experimental and kinetic modeling study of pyrolysis and oxidation of n-decane[J].Combustion and Flame,2014,161(7):1701-1715. [23] VIGUIER C,FIGUERIA DA SILVA L,DESBORDES D,et al.Onset of oblique detonation waves:Comparison between experimental and numerical results for hydrogen-air mixtures[C]//Symposium(International) on Combustion:vol.26:2.United States:Elsevier,1996:3023-3031. [24] AZAD A,JACQUELIN M,BULUÇ A,et al.The reverseCuthill-McKee algorithm in distributed-memory[C]//2017 IEEE International Parallel and Distributed Processing Symposium(IPDPS).IEEE,2017:22-31. [25] RYOO S,RODRIGUES C I,BAGHSORKHI S S,et al.Optimization principles and application performance evaluation of a multithreaded GPU using CUDA[C]//Proceedings of the 13th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming.2008:73-82. [26] ANAND V,GUTMARK E.Rotating detonation combustors andtheir similarities to rocket instabilities[J].Progress in Ener-gy and Combustion Science,2019,73:182-234. [27] EVANS J S,SCHEXNAYDER C J.Influence of chemical kine-tics and unmixedness on burning in supersonic hydrogen flames[J].AIAA Journal,1980,18(2):188-193. [28] RAMAN V,PRAKASH S,GAMBA M.Nonidealities in rota-ting detonation engines[J].Annual Review of Fluid Mechanics,2023,55:639-674. |
|
||