
































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!

































Dr. Hanif Durad
Dr. Hanif Durad
cz4102_le11.pdf
^ We aim to multiply a dense
n^ x^ n^ matrix
A^ with an
n^ x^^1
vector^ x to yield the
n x 1^ result vector
y.
^ The serial algorithm requires
(^2) n multiplications and
additions.
Dr. Hanif Durad
^ The total workload is
Serial Work=Problem Size
cz4102_le11.pdf
matrix^ A
is partitioned among
n^ processors,
with each processor storing a complete row of the matrix. The^ n^ x^
1 vector
x^ is distributed such that each process owns one of its elements.
cz4102_le11.pdf
cz4102_le11.pdf
^ both communication and computation are
Θ(n)
comp422-2010-Lecture23-DenseMatrix.pdf,P-
cz4102_le11.pdf
(i-1)^ 2 m^ are exchanged in round
i
^ Now m = 1, and p = n , we have ^ T = t^ s
log n + t
x^ (n-1)w ≈^ t^ log n + ts^
x^ (n -1)w = O(n)
p^ n T=^ p+ t p^ s
log p + t w Computationx^ (p -1)^ Communication
cz4102_le11.pdf
^ Now^
nm , we havep^ t^ log^
t^
(^ -1) t^ log^ s^ w t s^
n w T^
p^
p p p^
n ^
^ ^
^
p^ n (^2) T= n/p. + t p log p + ts
x^ nw Computation Communication
comp422-2010-Lecture23-DenseMatrix.pdf, P-7 + cz4102_le11.pdf ^ Cost-optimal execution for
p = O(n)
^ 1st term dominates overhead terms
^ The^ n x n
matrix is partitioned among
(^2) n processors such
that each processor owns a single element. The^ n^ x^
1 vector
x^ is distributed only in the last column of^ n^ processors.
cz4102_le11.pdf
Dr. Hanif Durad
Dr. Hanif Durad
cz4102_le11.pdf
Dr. Hanif Durad
Dr. Hanif Durad