基于国产编程语言的并行水动力模型开发及初步调优

打开文本图片集
关键词:二维水动力模型;并行计算;跨平台;Taichi编程语言中图分类号:TV131.2 文献标志码:A doi : 10.3969/j.issn.1000-1379.2026.02.007引用格式:,,,等.基于国产编程语言的并行水动力模型开发及初步调优[J].人民黄河,2026,48(2):41-46
Parallel Hydrodynamic Model and Preliminary Performance Tuning Based on a Domestic Programming Language
WANG Mingyang1,2, WANG Jing1,2,LI Na1,2 ,YU Qian1,²,GONG Xiaotian³ (1.China Institute of Water Resources and Hydropower Research,Beijing 1OOo38,China; 2.Research Center on Flood and Drought Disaster Reduction,MWR,Beijing 1OOO38,China; 3.Tongliao Hydrology and Water Resources Sub-Center, Tongliao O28OOO, China)
Abstract:Ahigh-peforance two-dimensionalhydrodyamicmodelFRASwasdevelopdusingthedomesticprogramminglanguageTaichi, featuringopafoallompingabilitAseltpltfibilitdsellpab ogeneous CPU-CPUandheterogeneousCPU-GPUcomputigarchitecures.Itsupprtsmultipleparalelacelerationbackends,including multi-coreCPUs,CUDA,OpenGL,Metal,andVulkan,demonstratingoutstandingcrossplatfomperformance.Inthisstudy,thetwo dimensionaldomainisdisretizedwithanustructuredmesh,andthecotiuityandmomentuequationsrenumericalldiscetizdusing thefinitevolume method.FRASwasappliedtoloodsimulationsoftheRaoyangRiverinLiaonngProvince.Comparedwiththeoriginalserial code,theparaleliplementatioachevesaspdupofupto14.7imes.Bytiiingtedataloutofvarablesomputatioalfo anceisfurtheriproedbypproximatelyiesduetoancedmmoryloalityesultinginoverallspeupofbout3O.ier preliminary optimizations.
Key words:two-dimensionalhydrodynamic model;;parallel computing;cross-platform; Taichi programming language
0 引言
在全球气候逐步变暖的趋势下,极端气候事件呈现越发频繁且严峻的态势,防洪工作所面临的挑战与日俱增。(剩余8003字)