文件名称:cannon
介绍说明--下载内容来自于网络,使用问题请自行百度
cannon 并行程序
Matrix multiplication with the Cannon Algorithm:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j.-Matrix multiplication with the Cannon Algorithm:
The Cannon Algorithm for matrix multiplication was presented in the course “Parallel and Distributed
Algorithms “by Dr. Klauck.
Short descr iption:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j. Matrix C = A · B should be calculated as follows:
1. step: Shift values so that processor i, j has values ai,(i+j)mod
√
p and b(i+j)mod
√
p,j.
2. step: ci,j = ai,j · bi,j
3. step: Shift values of matrix A left (i → i − 1) and values of matrix B up (j → j − 1).
Matrix multiplication with the Cannon Algorithm:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j.-Matrix multiplication with the Cannon Algorithm:
The Cannon Algorithm for matrix multiplication was presented in the course “Parallel and Distributed
Algorithms “by Dr. Klauck.
Short descr iption:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j. Matrix C = A · B should be calculated as follows:
1. step: Shift values so that processor i, j has values ai,(i+j)mod
√
p and b(i+j)mod
√
p,j.
2. step: ci,j = ai,j · bi,j
3. step: Shift values of matrix A left (i → i − 1) and values of matrix B up (j → j − 1).
相关搜索: cannon
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cannon.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
