Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 290H Lecture 15 GESP concluded Final presentations for survey projects next Tue and Thu 20-minute talk with at least 5 min for questions and discussion.

Similar presentations


Presentation on theme: "CS 290H Lecture 15 GESP concluded Final presentations for survey projects next Tue and Thu 20-minute talk with at least 5 min for questions and discussion."— Presentation transcript:

1 CS 290H Lecture 15 GESP concluded Final presentations for survey projects next Tue and Thu 20-minute talk with at least 5 min for questions and discussion Email me with your preferred day – first come first served Course evaluations at end of class today

2 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization

3 SuperLU-dist: Distributed static data structure Process (or) mesh 0 12 3 4 5 L 0 0 1 2 34 5 0 1 2 3 4 5 0 1 2 34 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 0 1 2 3 4 5 0 1 2 0 3 0 3 0 3 U Block cyclic matrix layout

4 GESP: Gaussian elimination with static pivoting PA = LU Sparse, nonsymmetric A P is chosen numerically in advance, not by partial pivoting! After choosing P, can permute PA symmetrically for sparsity: Q(PA)Q T = LU = x P

5 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

6 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

7 Row permutation for heavy diagonal Row permutation for heavy diagonal [Duff, Koster] Represent A as a weighted, undirected bipartite graph (one node for each row and one node for each column) Find matching (set of independent edges) with maximum product of weights Permute rows to place matching on diagonal Matching algorithm also gives a row and column scaling to make all diag elts =1 and all off-diag elts <=1 15234 1 5 2 3 4 A 1 5 2 3 4 1 5 2 3 4 15234 4 2 5 3 1 PA

8 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

9 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

10 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

11 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

12 Iterative refinement to improve solution Iterate: r = b – A*x backerr = max i ( r i / (|A|*|x| + |b|) i ) if backerr lasterr/2 then stop iterating solve L*U*dx = r x = x + dx lasterr = backerr repeat Usually 0 – 3 steps are enough

13 Convergence analysis of iterative refinement Let C = I – A(LU) -1 [ so A = (I – C)·(LU) ] x 1 = (LU) -1 b r 1 = b – Ax 1 = (I – A(LU) -1 )b = Cb dx 1 = (LU) -1 r 1 = (LU) -1 Cb x 2 = x 1 +dx 1 = (LU) -1 (I + C)b r 2 = b – Ax 2 = (I – (I – C)·(I + C))b = C 2 b... In general, r k = b – Ax k = C k b Thus r k  0 if |largest eigenvalue of C| < 1.

14 SuperLU-dist: GE with static pivoting SuperLU-dist: GE with static pivoting [Li, Demmel] Target: Distributed-memory multiprocessors Goal: No pivoting during numeric factorization 1.Permute A unsymmetrically to have large elements on the diagonal (using weighted bipartite matching) 2.Scale rows and columns to equilibrate 3.Permute A symmetrically for sparsity 4.Factor A = LU with no pivoting, fixing up small pivots: if |a ii | < ε · ||A|| then replace a ii by  ε 1/2 · ||A|| 5.Solve for x using the triangular factors: Ly = b, Ux = y 6.Improve solution by iterative refinement

15 Directed graph A is square, unsymmetric, nonzero diagonal Edges from rows to columns Symmetric permutations PAP T 1 2 3 4 7 6 5 AG(A)

16 Undirected graph, ignoring edge directions Overestimates the nonzero structure of A Sparse GESP can use symmetric permutations (min degree, nested dissection) of this graph 1 2 3 4 7 6 5 A+A T G(A+A T )

17 Symbolic factorization of undirected graph Overestimates the nonzero structure of L+U chol(A +A T )G + (A+A T ) 1 2 3 4 7 6 5

18 + Symbolic factorization of directed graph Add fill edge a -> b if there is a path from a to b through lower-numbered vertices. Sparser than G + (A+A T ) in general. But what’s a good ordering for G + (A)? 1 2 3 4 7 6 5 AG (A) L+U

19 Question: Preordering for GESP Use directed graph model, less well understood than symmetric factorization Symmetric: bottom-up, top-down, hybrids Nonsymmetric: mostly bottom-up Symmetric: best ordering is NP-complete, but approximation theory is based on graph partitioning (separators) Nonsymmetric: no approximation theory is known; partitioning is not the whole story Good approximations and efficient algorithms both remain to be discovered

20 Remarks on nonsymmetric GE Multifrontal tends to be faster but use more memory Unsymmetric-pattern multifrontal Lots more complicated, not simple elimination tree Sequential and SMP versions in UMFpack and WSMP (see web links) Distributed-memory unsymmetric-pattern multifrontal is a research topic Combinatorial preliminaries are important: ordering, etree, symbolic factorization, matching, scheduling not well understood in many ways also, mostly not done in parallel Not mentioned: symmetric indefinite problems Direct-methods technology is also used in preconditioners for iterative methods


Download ppt "CS 290H Lecture 15 GESP concluded Final presentations for survey projects next Tue and Thu 20-minute talk with at least 5 min for questions and discussion."

Similar presentations


Ads by Google