一个通用的并行函数库  被引量:1

A UNIVERSAL PARALLEL FUNCTION LIBRARY

在线阅读下载全文

作  者:苗春葆[1] 赵鹏[1] 沈飙[1] 刘永玲[1] 

机构地区:[1]中国海洋大学海洋环境学院,山东青岛266100

出  处:《计算机应用与软件》2011年第6期108-111,共4页Computer Applications and Software

基  金:国家高技术研究发展计划(2007AA09Z118;2008AA09A402);国家重点基础研究发展计划(2005CB422308)

摘  要:并行程序的设计在思路和方法上与串行程序有着本质的差别,其开发难度也比较大。为此,设计开发了一个通用的函数库来降低并行程序的开发难度。该函数库以MPI为基础,对并行程序开发中的常用功能进行了封装,具有一定的通用性。该函数库可以大大简化MPI并行程序的开发。并从区域分解、数组下标和循环变量的转换、数据交换和全局规约、输入输出等几个方面对该函数库进行了介绍,然后以数值求解二维拉普拉斯方程为例介绍了使用该函数库将串行程序改为并行程序的方法和步骤。目前已经成功地将其应用到风暴潮数值模式的并行化中,取得了较好的效果。The design of parallel programs differs from sequential programs essentially in its conception and approach,and is quite difficult to develop.Therefore in the paper a universal parallel function library based on MPI was designed to reduce the difficulty of the development of parallel programs.The library encapsulates common functions used in the development of parallel programs,and has certain universality.The library can significantly simplify the development of MPI parallel program.In the paper the library was introduced from the aspects of domain decomposition,transform of array indices and loop variables,data exchange and global reduction,and data I/O.An example that solves Laplace′s equation on a two-dimensional surface with fixed boundaries was introduced to show the way and the steps of translating sequential programs into parallel programs using the parallel library.The parallel library has been successfully applied in the parallelisation of a storm surge numerical model with fairly good effect.

关 键 词:MPI 并行 函数库 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象