首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于MPI与OpenMP的矩阵乘法并行算法
引用本文:张艳华,刘祥港. 一种基于MPI与OpenMP的矩阵乘法并行算法[J]. 计算机与现代化, 2011, 0(7): 84-87. DOI: 10.3969/j.issn.1006-2475.2011.07.024
作者姓名:张艳华  刘祥港
作者单位:1. 天津科技大学计算机科学与信息工程学院,天津,300222
2. 天津科技大学计算中心,天津,300222
基金项目:天津科技大学科学研究基金资助项目(20090211)
摘    要:阐述MPI与OpenMP进行并行计算的特点,并在Visual Studio 2010上构建一个基于两者的混合编程平台。程序在该平台上执行时能够同时实现多进程与进程内多线程编程,设计并实现一种基于数据划分的矩阵乘法的并行算法,将数据分解为两部分交给两个计算节点分别完成,并在每个计算节点内将数据进一步划分,交给多个线程同时执行。通过与非并行矩阵乘法、MPI矩阵乘法、OpenMP矩阵乘法运算性能进行比较,验证该算法可以有效地挖掘计算机的处理能力。

关 键 词:数据划分  混合并行计算  MPI  OpenMP  矩阵乘法

Parallel Algorithm of Matrix Multiplication Based on MPI & OpenMP
ZHANG Yan-hua,LIU Xiang-gang. Parallel Algorithm of Matrix Multiplication Based on MPI & OpenMP[J]. Computer and Modernization, 2011, 0(7): 84-87. DOI: 10.3969/j.issn.1006-2475.2011.07.024
Authors:ZHANG Yan-hua  LIU Xiang-gang
Affiliation:ZHANG Yan-hua1,LIU Xiang-gang2(1.College of Computer Science and Information Technology,Tianjin University of Science & Technology,Tianjin 300222,China,2.Computing Center,China)
Abstract:How MPI and OpenMP act separately on parallel computing is introduced,and a platform is established using MPI and OpenMP on Visual Studio 2010.The multi-process and multithreadings are realized on it.A matrix multiplication parallel algorithm on data partitioning is designed and implemented.The matrix data are divided into two parts for two computers.Each computer completes one part by using multithreadings.The experiments prove that data processing capability is improved compared with matrix multiplication...
Keywords:data partitioning  mixture parallel computing  MPI  OpenMP  matrix multiplication  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号