人民黄河2026,Vol.48Issue(2):41-46,6.DOI:10.3969/j.issn.1000-1379.2026.02.007
基于国产编程语言的并行水动力模型开发及初步调优
Parallel Hydrodynamic Model and Preliminary Performance Tuning Based on a Domestic Programming Language
摘要
Abstract
A high-performance two-dimensional hydrodynamic model FRAS was developed using the domestic programming language Taichi,featuring cross-platform parallel computing capability.FRAS provides excellent parallelization flexibility and is well compatible with both hom-ogeneous CPU-CPU and heterogeneous CPU-GPU computing architectures.It supports multiple parallel acceleration backends,including multi-core CPUs,CUDA,OpenGL,Metal,and Vulkan,demonstrating outstanding cross-platform performance.In this study,the two-dimensional domain is discretized with an unstructured mesh,and the continuity and momentum equations are numerically discretized using the finite volume method.FRAS was applied to flood simulations of the Raoyang River in Liaoning Province.Compared with the original serial code,the parallel implementation achieves a speedup of up to 14.7 times.By optimizing the data layout of variables,computational perform-ance is further improved by approximately 2 times due to enhanced memory locality,resulting in an overall speedup of about 30.1 times after preliminary optimizations.关键词
二维水动力模型/并行计算/跨平台/Taichi编程语言Key words
two-dimensional hydrodynamic model/parallel computing/cross-platform/Taichi programming language分类
建筑与水利引用本文复制引用
王明阳,王静,李娜,俞茜,宫啸天..基于国产编程语言的并行水动力模型开发及初步调优[J].人民黄河,2026,48(2):41-46,6.基金项目
国家重点研发计划项目(2022YFC3006400,2022YFC3006403) (2022YFC3006400,2022YFC3006403)
国家自然科学基金资助项目(U2340225) (U2340225)