









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Cost Analysis: one-to-all broadcast
& reduction
-^
t^ s
+ t
w
m
.
-^
Scatter and gather operations.
-^
-^
2
Parallel Matrix_Vector Multiplication:
-^
-^
-^
-^
The
n
x
n
matrix is partitioned
among
n
processors, with each
processor storing complete rowof the matrix.
-^
The
n
x
vector
x
is distributed
such that each process ownsone of its elements.
Since each process starts with only one element of
x
an all-to-all broadcast is required to distribute all theelements to all the processes.
-^
Process
i^
now computes
The all-to-all broadcast and the computation of
y [
i ]
both
take time
(n)
. Therefore, the parallel time is
(n)
Consider now the case when
p < n
and we use block 1D
partitioning.
-^
Each process initially stores
n / p
complete rows of the
matrix and a portion of the vector of size
n / p
The all-to-all broadcast takes place among p processesand involves messages of size
n / p
This is followed by
n / p
local dot products.
Thus, the parallel run time of this procedure is This is cost-optimal.
Also time complexity for 2-D partitioned Time complexity