DOC PREVIEW
Berkeley COMPSCI C267 - Solving Linear Systems Arising from PDEs Using Multigrid

This preview shows page 1-2-3-19-20-38-39-40 out of 40 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 267 Applications of Parallel Computers Solving Linear Systems Arising from PDEs Using MultigridWhere Was I Last Week?Review of Earlier Lecture on Solving PDEs2D Poisson’s equation: 2u/x2 + 2u/y2 = f(x,y)Algorithms for 2D Poisson with N UnknownsMultigrid MotivationSlide 7Multigrid OverviewSame Big Idea Used in Other ProblemsMultigrid uses Divide-and-Conquer in 2 WaysMultigrid Sketch on a Regular 1D MeshMultigrid Sketch on a Regular 2D MeshMultigrid OperatorsSlide 14Multigrid V-Cycle AlgorithmWhy is this called a V-Cycle?Complexity of a V-Cycle on a 2D GridFull Multigrid (FMG)Full Multigrid Cost AnalysisComplexity of Solving Poisson’s EquationDetails of Multigrid OperatorsThe Solution Operator S(i) - DetailsWeighted Jacobi Damps High Frequency ErrorMultigrid as Divide and Conquer AlgorithmThe Restriction Operator R(i) - DetailsInterpolation OperatorConvergence Picture of Multigrid in 1DConvergence Picture of Multigrid in 2DConvergence Rate of Multigrid VariationsParallel 2D MultigridPerformance Model of parallel 2D MultigridComparison of MethodsPracticalitiesMultigrid on an Adaptive MeshMultiblock ApplicationsAdaptive Mesh RefinementSupport for AMRMultigrid on an Unstructured MeshSlide 39Summary01/14/19 CS267 Lectures 19 1CS 267 Applications of Parallel ComputersSolving Linear Systems Arising from PDEsUsing MultigridKatherine Yelickwww.cs.berkeley.edu/~yelick/cs26701/14/19 CS267 Lectures 19 2Where Was I Last Week?Whirlwind tour of Japanese SupercomputingComputer facilitiesThe Earth Simulator (40 Tflops)A Supercluster of PCs (11 Tflops)Three government agenciesMEXT, CSTP, METIUniversities and Research LabsUniversity of TokyoUniversity to TsukubaRIST, AISTVendorsNEC, Hitachi, Fujitsu, Sony01/14/19 CS267 Lectures 19 3Review of Earlier Lecture on Solving PDEs•Review Poisson equation•Overview of Methods for Poisson Equation•Jacobi’s method•Red-Black SOR method•Conjugate Gradients•FFTToday:•MultigridReduce to sparse-matrix-vector multiplyNeed them to understand Multigrid01/14/19 CS267 Lectures 19 42D Poisson’s equation: 2u/x2 + 2u/y2 = f(x,y)The the matrix T for a regular mesh is3D is analogous4 -1 -1-1 4 -1 -1 -1 4 -1 -1 4 -1 -1 -1 -1 4 -1 -1 -1 -1 4 -1 -1 4 -1 -1 -1 4 -1 -1 -1 4T =4-1-1-1-1Graph and “stencil”01/14/19 CS267 Lectures 19 5Algorithms for 2D Poisson with N UnknownsAlgorithm Serial PRAM Memory #ProcsDense LU N3N N2N2Band LU N2N N3/2NJacobi N2 N N NExplicit Inv. N2 log N N2 N2Conj.Grad. N 3/2N 1/2 *log N N NRB SOR N 3/2N 1/2N NSparse LU N 3/2N 1/2N*log N NFFT N*log N log N N NMultigrid N log2 N N NLower bound N log N NPRAM is an idealized parallel model with zero cost communication01/14/19 CS267 Lectures 19 6Multigrid MotivationThe FFT is O(log N), but has an O(N) transpose that prevents scalingRecall that Jacobi, SOR, CG, or any other sparse-matrix-vector-multiply-based algorithm can only move information one grid call at a timeTakes N1/2 steps to get information across gridCan show that decreasing error by fixed factor c<1 takes (log n) steps Convergence to fixed error < 1 takes (log n ) stepsSOR and CG take N1/2 stepsTherefore, converging in O(1) steps requires moving information across grid faster than to one neighboring grid cell per step01/14/19 CS267 Lectures 19 7Multigrid Motivation01/14/19 CS267 Lectures 19 8Multigrid OverviewBasic Algorithm:Replace problem on fine grid by an approximation on a coarser gridSolve the coarse grid problem approximately, and use the solution as a starting guess for the fine-grid problem, which is then be iteratively updatedSolve the coarse grid problem recursively, i.e. by using a still coarser grid approximation, etc.Success depends on coarse grid solution being a good approximation to the fine grid01/14/19 CS267 Lectures 19 9Same Big Idea Used in Other ProblemsReplace fine problem by coarse approximation, recursivelyMultilevel Graph Partitioning (METIS): Replace graph to be partitioned by a coarser graph, obtained via Maximal Independent SetGiven partitioning of coarse grid, refine using Kernighan-LinBarnes-Hut (and Fast Multipole Method):Approximate leaf node of QuadTree containing many particles by Center-of-Mass and Total-Mass (or multipole expansion)Approximate internal nodes of QuadTree by combining expansions of childrenForce in any particular node approximated by combining expansions of a small set of other nodesAll examples depend on coarse approximation being accurate enough (at least if we are far enough away)01/14/19 CS267 Lectures 19 10Multigrid uses Divide-and-Conquer in 2 WaysFirst way:Solve problem on a given grid by calling Multigrid on a coarse approximation to get a good guess to refineSecond way:Think of error as a sum of sine curves of different frequenciesSame idea as FFT solution, but not explicit in algorithmEach call to Multigrid responsible for suppressing coefficients of sine curves of the lower half of the frequencies in the errordifferent grid levels will damp different frequency errors01/14/19 CS267 Lectures 19 11Multigrid Sketch on a Regular 1D MeshConsider a 2m+1 grid in 1D for simplicityLet P(i) be the problem of solving the discrete Poisson equation on a 2i+1 grid in 1D Write linear system as T(i) * x(i) = b(i)P(m) , P(m-1) , … , P(1) is a sequence of problems from finest to coarsest01/14/19 CS267 Lectures 19 12Multigrid Sketch on a Regular 2D MeshConsider a 2m+1 by 2m+1 gridLet P(i) be the problem of solving the discrete Poisson equation on a 2i+1 by 2i+1 grid in 2DWrite linear system as T(i) * x(i) = b(i)P(m) , P(m-1) , … , P(1) is a sequence of problems from finest to coarsest01/14/19 CS267 Lectures 19 13Multigrid OperatorsFor problem P(i) :b(i) is the RHS and x(i) is the current estimated solution (T(i) is implicit in the operators below.)Multigrid will be defined by a repeated sequence of operatorsThe multigrid operators average values on neighboring grid pointsNeighboring grid points on coarse problems are far away in fine problems, so information moves quickly on


View Full Document

Berkeley COMPSCI C267 - Solving Linear Systems Arising from PDEs Using Multigrid

Documents in this Course
Lecture 4

Lecture 4

52 pages

Split-C

Split-C

5 pages

Lecture 5

Lecture 5

40 pages

Load more
Download Solving Linear Systems Arising from PDEs Using Multigrid
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Solving Linear Systems Arising from PDEs Using Multigrid and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Solving Linear Systems Arising from PDEs Using Multigrid 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?