登录
首页 » 算法 » 基于mpi的矩阵相乘的并行算法

基于mpi的矩阵相乘的并行算法

于 2023-03-04 发布 文件大小:1.38 kB
0 210
下载积分: 2 下载次数: 1

代码说明:

使用MPI做并行计算时,根据程序的具体要求,可按任务进行分配或数据进行分配。根据矩阵乘积的特点,这里按数据进行分配,即每个计算机节点计算不同的数据,由于矩阵数据的特点,这里按行进行数据分块。矩阵乘法在于对矩阵进行分块,然后交由各进程执行,最后将计算结果传递给主进程。 假设是M*N,计算前,将矩阵N发送给所有从进程,然后将矩阵M分块,将M中数据按行分给各从进程,在从进程中计算M中部分行数据和N的乘积,最后将结果发送给主进程。这里为了方便,有多少进程,就将M分了多少块,除最后一块外的其他数据块大小都相等,最后一块是剩下的数据,大小大于等于其他数据块大小,因为矩阵行数不一定整除进程数。最后一块数据在主进程中计算,其他的在从进程中计算。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • APML为用户提供访问Web页面和下载他们的能力…
    ApMl provides users with the ability to crawl the web and download pages to their computer in a directory structure suitable for a Machine Learning system to both train itself and classify new documents. Classification Algorithms include Naive Bayes, KNN -ApMl provides users with the ability to crawl the web and download pages to their computer in a directory structure suitable for a Machine Learning system to both train itself and classify new documents. Classification Algorithms include Naive Bayes, KNN
    2022-03-31 04:48:40下载
    积分:1
  • Delphi DLL装载机
    Dll加载器,用于加载程序索引和索引
    2022-09-06 16:25:02下载
    积分:1
  • C++ BP源程序.rar
    C++ BP算法源程序.rar-C BP algorithm source. Rar
    2022-10-23 04:25:03下载
    积分:1
  • Molgedey和舒斯特去相关,具有方形混合矩阵A。
    The Molgedey and Schuster decorrelation algorithm, having square mixing matrix and no noise . Truncation is used for the time shifted matrix, and it is forced to be symmetric . The delay Tau is estimated . The number of independent components are calculated using Bayes Information Criterion (BIC), with PCA for dimension reduction.-The Molgedey and Schuster decorrelation algorithm, having square mixing matrix and no noise . Truncation is used for the time shifted matrix, and it is forced to be symmetric . The delay Tau is estimated . The number of independent components are calculated using Bayes Information Criterion (BIC), with PCA for dimension reduction.
    2022-03-17 02:59:15下载
    积分:1
  • 基于libtommath的CRT大数实现
    采用libtommath大数库对中国剩余定理算法通解进行改写,支持128位的大数实现,已测试成功。
    2022-08-13 23:23:22下载
    积分:1
  • 麻省理工学院光子晶体的计程序,很强大,很有价值…
    麻省理工的计算光子晶体的程序,功能非常强大,很有研究价值的软件-MIT photonic crystal calculation procedures, which is very strong, very valuable software
    2022-04-17 05:02:37下载
    积分:1
  • 混沌工具箱
    该工具箱是研究非线性时间序列混沌与分形的有力工具,能够计算非线性时间序列的动力学不变量,如关联维数,李亚普洛夫指数等指标。此外还包含相空间重构的过程中参数的估计方法。
    2022-04-22 23:13:45下载
    积分:1
  • 传教士野人坐同一船只过河问题的C语言程序
    传教士野人坐同一船只过河问题的C语言程序-missionaries Savage sit the same river vessels of the C Programming Language
    2022-02-10 00:20:45下载
    积分:1
  • leach协议带讲解!
    有关于LEACH的讲解~帮助新人更好的理解LEACH算法的原理~LEACH协议,全程是“低功耗自适应集簇分层型协议”是一种无线传感器网络路由协议。算法基本思想:以循环的方式随机选择簇头节点,将整个网络的能量负载平均分配到每个传感器节点,从而达到降低网络能源消耗/提高网络整体生存时间的目的。仿真表明,与一般的平面多条路由协议和静态分层算法相比,LEACH分簇协议可以将网络生命周期延长15%。
    2022-03-16 16:19:40下载
    积分:1
  • a algorithm for short time fourier transform
    一种短时傅立叶变换的算法.并利用短时傅立叶变换画图-a algorithm for short time fourier transform
    2022-04-26 17:11:05下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载