Compressible Flows by Partial Coloring: A Case Study of a - - PowerPoint PPT Presentation

compressible flows by partial coloring
SMART_READER_LITE
LIVE PREVIEW

Compressible Flows by Partial Coloring: A Case Study of a - - PowerPoint PPT Presentation

CSC 2016, Albuquerque, USA, October 11, 2016 Enabling Implicit Time Integration for Compressible Flows by Partial Coloring: A Case Study of a Semi-matrix-free Preconditioning Technique H. Martin Bcker, M. Ali Rostami Mathematics and Computer


slide-1
SLIDE 1

1

Enabling Implicit Time Integration for Compressible Flows by Partial Coloring: A Case Study of a Semi-matrix-free Preconditioning Technique

  • H. Martin Bücker, M. Ali Rostami

Mathematics and Computer Science Friedrich Schiller University Jena CSC 2016, Albuquerque, USA, October 11, 2016 Michael Lülfesmann Düsseldorf, Germany

slide-2
SLIDE 2

Outline

  • Problem in Scientific Computing
  • Combinatorial Model
  • Heuristic Coloring Algorithm
  • Experimental Results

2

slide-3
SLIDE 3

3

QUADFLOW

Josef Ballmann Mechanics

  • Finite Volume
  • Implicit Time Integration
  • Unstructured Grids
  • Adaptivity via Multiscale Analysis

(Wolfgang Dahmen, Sigfried Müller, Mathematics, RWTH)

slide-4
SLIDE 4

Large Sparse Linear System

4

= = +

slide-5
SLIDE 5

Automatic Differentiation (AD)

5

Given , , code to evaluate and seed matrix , generate code to evaluate matrix-matrix product Relative runtime overhead:

slide-6
SLIDE 6

Preconditioning (PC)

6

Let Rather than Solve

slide-7
SLIDE 7

Missing Connections: AD and PC

7

  • Access to individual elements
  • Access to chunks of rows/columns

Preconditioning: Automatic Differentiation:

  • Access to complete row/column
  • Access to groups of complete rows/columns
slide-8
SLIDE 8

Sparsification

8

slide-9
SLIDE 9

Main Idea

9

sparsification preconditioning

J J M  ) (J  ) ( ~ J M  

preconditioning

slide-10
SLIDE 10

Full vs Partial

10

slide-11
SLIDE 11

Problem :

Scientific Computing Problem

11

Let be a sparse Jacobian matrix with known nonzero pattern and let denote its sparsification using blocks on the diagonal of . Find binary seed matrix with minimal number of columns such that all nonzeros

  • f also appear in .
slide-12
SLIDE 12

Outline

  • Problem in Scientific Computing
  • Combinatorial Model
  • Heuristic Coloring Algorithm
  • Experimental Results

12

slide-13
SLIDE 13

Full Coloring

13

slide-14
SLIDE 14

Full Coloring

14

slide-15
SLIDE 15

Partial Coloring

15

slide-16
SLIDE 16

Partial Coloring

16

slide-17
SLIDE 17

Definition: ρ-Orthogonality

17

structurally -orthogonal to There is no row position in which and are nonzeros and at least one

  • f them belongs to .

: ≝

slide-18
SLIDE 18

Definition: ρ-Column Intersection Graph

18

Jacobian matrices and , where associated with a pair of represents not structurally -orthogonal. ∈ iff and are

slide-19
SLIDE 19

Combinatorial Problem

19

Problem : Find a coloring of the -column intersection graph with a minimal number of colors. Equivalent to problem .

slide-20
SLIDE 20

Outline

  • Problem in Scientific Computing
  • Combinatorial Model
  • Heuristic Coloring Algorithm
  • Experimental Results

20

slide-21
SLIDE 21

Greedy Partial Coloring Heuristic

21

slide-22
SLIDE 22

Outline

  • Problem in Scientific Computing
  • Combinatorial Model
  • Heuristic Coloring Algorithm
  • Experimental Results

22

slide-23
SLIDE 23

Convergence Behavior with GMRES, ILU(0)

23

slide-24
SLIDE 24

Number of Nonzeros

24

slide-25
SLIDE 25

Iterations and Colors

25

slide-26
SLIDE 26

Zoom into Previous Figure

26

slide-27
SLIDE 27

Execution Times

27

slide-28
SLIDE 28

Concluding Remarks

  • Formulation of a combinatorial problem

arising from preconditioning using automatic differentiation

  • Graph model encoding this situation as

a partial coloring problem

  • Design of heuristic partial coloring

algorithm

  • Application to case study from CFD

28

slide-29
SLIDE 29

Major References

  • QUADFLOW: Bramkamp, Lamby, and Müller. An

adaptive multiscale finite volume solver for unsteady and steady state ow computations. Journal of Computational Physics, 197(2):460-490, 2004.

  • Sparsity: Gebremedhin, Manne, and Pothen. What

color is your Jacobian? Graph coloring for computing derivatives. SIAM Review, 47(4):629- 705, 2005

  • Sparsification: Cullum and Tuma. Matrix-free

preconditioning using partial matrix estimation. BIT Numerical Mathematics, 46(4):711-729, 2006.

29