COMP 5055 Parallel Computing Parallel Implementation of the Conjugate Gradient Method - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

COMP 5055 Parallel Computing Parallel Implementation of the Conjugate Gradient Method

Description:

MPI Communication Functions. for i=1 to rows do. C[i] =a[j]*b[i]; end ... Results : Speedup. Conclusion: Optimize implementation to reduce communications ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 13
Provided by: Lol5
Category:

less

Transcript and Presenter's Notes

Title: COMP 5055 Parallel Computing Parallel Implementation of the Conjugate Gradient Method


1
COMP 5055 Parallel ComputingParallel
Implementation of the Conjugate Gradient Method
  • Lola Bautista

2
Outline
  • Introduction
  • Sequential Algorithm
  • Parallel Implementation
  • Results

3
Introduction The Conjugate Gradient Method
  • Iterative method to solve linear systems of the
    form Axb.
  • Matrix A must be symmetric positive definite

4
Sequential Algorithm
ConjugateGradient(A,b,x,iter,tol)
residb-Ax dirresid for k1 to iter
do zAdir a ltresid,residgt ß ltdir,zgt µ
a/ß xx µdir residresid- µz a_1
ltresid,residgt if(a_1vtol)then break else ß_1
a_1/a dr ßd end end
Matrix-Vector
Matrix-Vector
Dot Product
Dot Product
5
Input Matrix CSR Format
N10
A
col
start
6
Rowwise Decomposition of Start vector
A
col
p0
p1
p2
p3
p4
p5
p6
p7
7
Rowwise Decomposition of b vector
p0
p1
p2
p3
p4
p5
p6
p7
b
0
1
2
3
4
5
6
7
8
9
8
MPI Communication Functions
MPI_Send MPI_Recv
Rowwise Decomposition
DotProduct(a,b)
for i1 to rows do Ciajbi end
MPI_Reduce
MPI_Bcast
9
Results (N 100)
10
Results (N 100,000)
11
Results (N 1,000,000)
12
Results Speedup
Conclusion Optimize implementation to reduce
communications
Write a Comment
User Comments (0)
About PowerShow.com