摘要
为实现平面二维非均匀泥沙模型并行计算,采用OpenMP指令对串行源程序进行改造。基于三角形-四边形混合网格的平面二维非均匀泥沙有限体积模型具有显式求解时网格单元相互独立性这种特性,Fortran串行源程序无需进行较大的修改,只要在循环计算和数组整体操作部分嵌入OpenMP循环并行指令和数组并行指令,即可实现并行计算。案例分析结果表明,在并行线程数目等于计算机固有线程数目时,并行加速比达到最大值1.55;OpenMP技术使用线程间共享内存的方式协调并行计算,很适合在多核计算机上运行,且编程简单灵活,将随着计算机硬件性能的提高得到更广泛的应用。
In order to realize parallel computing for two-dimensional flow with non-uniform sediment,OpenMP is used to transform serial source program.Hence,a parallel computing model for two-dimensional flow with non-uniform sediment is estabished.The OpenMP parallel computing model based on triangle-quadrangle mixed grid has the characteristics of cell independence in the condition of explicit numerical solution.According to this advantage,by means of embedding the circular OpenMP parallel instructions and array parallel instructions in cycle calculation and the integrated array operation respectively,the parallel computing can be realized,without modification of Fortran serial source program.Case calculation results show that the parallel speed ratio can reach the maximum value of 1.55,when the parallel computing process number is equal to the computer intrinsic one.As OpenMP programming is simple and flexible and it is suitable to operate in multi-core computer,it will be more widely used with the improvement of performance of computer hardware.
出处
《水利水电科技进展》
CSCD
北大核心
2012年第2期11-14,共4页
Advances in Science and Technology of Water Resources
基金
中央级公益性科研院所基本科研业务费专项(HKY-JBYW-2010-14)