Modeling Power and Energy of the Task-Parallel Cholesky - - PowerPoint PPT Presentation

modeling power and energy of the task parallel cholesky
SMART_READER_LITE
LIVE PREVIEW

Modeling Power and Energy of the Task-Parallel Cholesky - - PowerPoint PPT Presentation

International Conference on Energy-Aware High Performance Computing Modeling Power and Energy of the Task-Parallel Cholesky Factorization on Multicore Processors Pedro Alonso 1 , Manuel F. Dolz 2 , Rafael Mayo 2 , Enrique S. Quintana-Ort 2 1 2


slide-1
SLIDE 1

International Conference on Energy-Aware High Performance Computing

Modeling Power and Energy of the Task-Parallel Cholesky Factorization on Multicore Processors

Pedro Alonso1, Manuel F. Dolz2, Rafael Mayo2, Enrique S. Quintana-Ort2 1 2

September 12, 2012, Hamburg (Germany)

slide-2
SLIDE 2

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Motivation

High performance computing:

Optimization of algorithms applied to solve complex problems

Technological advance ⇒ improve performance:

Higher number of cores per socket (processor)

Large number of processors and cores ⇒ High energy consumption Tools to analyze performance and power in order to detect code inefficiencies and reduce energy consumption

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-3
SLIDE 3

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Outline

1

Introduction

2

Task-parallelism in the Cholesky factorization Algorithm specification Parallelization SMPSs operation

3

Power model Formulation Environment setup Component estimation Power/energy model testing

4

Experimental results Energy model evaluation Power model evaluation

5

Conclusions and future work

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-4
SLIDE 4

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Introduction

Parallel scientific applications

Examples for dense linear algebra: Cholesky, QR and LU factorizations

Tools for power and energy analysis

Power profiling in combination with performance/tracing tools for HPC

Parallel applications + Power profiling

Is it possible to predict power/energy consumption? Objective: Power modeling

Predict power consumed by applications without power measurement devices. Estimations are needed to determine how to address the power-challenge for energy-efficient hardware and software

Energy savings

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-5
SLIDE 5

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Introduction

Parallel scientific applications

Examples for dense linear algebra: Cholesky, QR and LU factorizations

Tools for power and energy analysis

Power profiling in combination with performance/tracing tools for HPC

Parallel applications + Power profiling

Is it possible to predict power/energy consumption? Objective: Power modeling

Predict power consumed by applications without power measurement devices. Estimations are needed to determine how to address the power-challenge for energy-efficient hardware and software

Energy savings

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-6
SLIDE 6

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Algorithm specification

Cholesky factorization: A = UTU A ∈ Rn×n symmetric definite positive (s.p.d.) matrix U ∈ Rn×n unit upper triangular matrix

⇒ Consider a partitioning of matrix A into blocks of size b × b

for k = 1, 2, . . . , s do Akk = UT kk Ukk Chol: Cholesky factorization for j = k + 1, k + 2, . . . , s do Akj ← Akj U−T kk Trsm: Triangular system solve end for for i = k + 1, k + 2, . . . , s do Aii ← Aii − AT ki Aki Syrk: Symmetric rank-b update for j = i + 1, i + 2, . . . , s do Aij ← Aij − AT ki Akj Gemm: Matrix-matrix product end for end for end for

Iteration 1

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-7
SLIDE 7

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Algorithm specification

Cholesky factorization: A = UTU A ∈ Rn×n symmetric definite positive (s.p.d.) matrix U ∈ Rn×n unit upper triangular matrix

⇒ Consider a partitioning of matrix A into blocks of size b × b

for k = 1, 2, . . . , s do Akk = UT kk Ukk Chol: Cholesky factorization for j = k + 1, k + 2, . . . , s do Akj ← Akj U−T kk Trsm: Triangular system solve end for for i = k + 1, k + 2, . . . , s do Aii ← Aii − AT ki Aki Syrk: Symmetric rank-b update for j = i + 1, i + 2, . . . , s do Aij ← Aij − AT ki Akj Gemm: Matrix-matrix product end for end for end for

Iteration 2

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-8
SLIDE 8

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Algorithm specification

Cholesky factorization: A = UTU A ∈ Rn×n symmetric definite positive (s.p.d.) matrix U ∈ Rn×n unit upper triangular matrix

⇒ Consider a partitioning of matrix A into blocks of size b × b

for k = 1, 2, . . . , s do Akk = UT kk Ukk Chol: Cholesky factorization for j = k + 1, k + 2, . . . , s do Akj ← Akj U−T kk Trsm: Triangular system solve end for for i = k + 1, k + 2, . . . , s do Aii ← Aii − AT ki Aki Syrk: Symmetric rank-b update for j = i + 1, i + 2, . . . , s do Aij ← Aij − AT ki Akj Gemm: Matrix-matrix product end for end for end for

Iteration 3

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-9
SLIDE 9

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Algorithm specification

Cholesky factorization: A = UTU A ∈ Rn×n symmetric definite positive (s.p.d.) matrix U ∈ Rn×n unit upper triangular matrix

⇒ Consider a partitioning of matrix A into blocks of size b × b

for k = 1, 2, . . . , s do Akk = UT kk Ukk Chol: Cholesky factorization for j = k + 1, k + 2, . . . , s do Akj ← Akj U−T kk Trsm: Triangular system solve end for for i = k + 1, k + 2, . . . , s do Aii ← Aii − AT ki Aki Syrk: Symmetric rank-b update for j = i + 1, i + 2, . . . , s do Aij ← Aij − AT ki Akj Gemm: Matrix-matrix product end for end for end for

Iteration 4

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-10
SLIDE 10

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Algorithm specification

Cholesky factorization: A = UTU A ∈ Rn×n symmetric definite positive (s.p.d.) matrix U ∈ Rn×n unit upper triangular matrix

⇒ Consider a partitioning of matrix A into blocks of size b × b

for k = 1, 2, . . . , s do Akk = UT kk Ukk Chol: Cholesky factorization for j = k + 1, k + 2, . . . , s do Akj ← Akj U−T kk Trsm: Triangular system solve end for for i = k + 1, k + 2, . . . , s do Aii ← Aii − AT ki Aki Syrk: Symmetric rank-b update for j = i + 1, i + 2, . . . , s do Aij ← Aij − AT ki Akj Gemm: Matrix-matrix product end for end for end for

Iteration 5 Parallelization ⇒ Not trivial at code level!

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-11
SLIDE 11

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Parallelization

Option 1: Use multi-threaded BLAS

Straightforward approach towards LAPACK-level parallelization Highly tuned multi-threaded kernels: Intel MKL, AMD ACML or IBM ESSL,... Fork/join approach: parallelism is not fully exploited

→ → → →

... ... ... ... ...

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-12
SLIDE 12

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Parallelization

Option 2: Use a runtime task scheduler

We use SMPSs runtime-compiler framework to exploit task-parallelism Functions in code are annotated as tasks using OpenMP-like pragmas #pragma css task Operations are not executed in the order they appear in the code but respecting data dependencies SMPSs easily obtains performance traces which can be analyzed using Paraver (Performance analysis tools from Barcelona Supercomputing Center)

SMPSs proceeds in two stages:

1

A symbolic execution produces a DAG containing dependencies

2

DAG dictates the feasible orderings in which task can be executed

Trsm Chol Gemm Trsm Syrk Syrk Trsm Chol Chol Syrk Trsm Chol Trsm Trsm Gemm Gemm Gemm Syrk Syrk Syrk

Figure: Right-looking Cholesky DAG with a matrix consisting of 4 × 4 blocks

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-13
SLIDE 13

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Parallelization

Option 2: Use a runtime task scheduler

We use SMPSs runtime-compiler framework to exploit task-parallelism Functions in code are annotated as tasks using OpenMP-like pragmas #pragma css task Operations are not executed in the order they appear in the code but respecting data dependencies SMPSs easily obtains performance traces which can be analyzed using Paraver (Performance analysis tools from Barcelona Supercomputing Center)

SMPSs proceeds in two stages:

1

A symbolic execution produces a DAG containing dependencies

2

DAG dictates the feasible orderings in which task can be executed

Trsm Chol Gemm Trsm Syrk Syrk Trsm Chol Chol Syrk Trsm Chol Trsm Trsm Gemm Gemm Gemm Syrk Syrk Syrk

Figure: Right-looking Cholesky DAG with a matrix consisting of 4 × 4 blocks

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-14
SLIDE 14

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Cholesky factorization with SMPSs pragma annotations

void d p o t r f s m p s s ( i n t n , i n t b , double ∗A, i n t Alda , i n t ∗i n f o ){ f o r ( k=1; k< = n ; k+=b ) { d p o t r f u ( b , &A r e f ( k , k ) , Alda , i n f o ) ; i f ( k+b < = n ) { f o r ( j=k+b ; k< = n ; k+=b ) d t r s m l u t n ( b , &A r e f ( k , k ) , &A r e f ( k , j ) , Alda ) ; f o r ( i=k+b ; i< = n ; i+=b ) { d s y r k u t ( b , &A r e f ( k , i ) , &A r e f ( i , i ) , Alda ) ; f o r ( j=i+b ; j< = n ; j+=b ) dgemm tn ( b , &A r e f ( k , i ) , &A r e f ( k , j ) , &A r e f ( i , j ) , Alda ) ; } } } } void d p o t r f u ( i n t b , double A [ ] , i n t ldm , i n t ∗i n f o ){ d p o t r f ( ”Upper” , &b , A, &ldm , i n f o ) ; } void d t r s m l u t n ( i n t b , double A [ ] , double B [ ] , i n t ldm ){ double done = 1 . 0 ; dtrsm ( ” L e f t ” , ”Upper” , ” Transpose ” , ”Non u n i t ” , &b , &b , &done , A, &ldm , B, &ldm ) ; } void d s y r k u t ( i n t b , double A [ ] , double C [ ] , i n t ldm ){ double dmone = −1.0, done = 1 . 0 ; dsyrk ( ”Upper” , ” Transpose ” , &b , &b , &dmone , A, &ldm , &done , C, &ldm ) ; } void dgemm tn ( i n t b , double A [ ] , double B [ ] , double C [ ] , i n t ldm ){ double dmone = −1.0, done = 1 . 0 ; dgemm( ” Transpose ” , ”No t r a n s p o s e ” , &b , &b , &b , &dmone , A, &ldm , B, &ldm , &done , C, &ldm ) ; } Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-15
SLIDE 15

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

Cholesky factorization with SMPSs pragma annotations

void d p o t r f s m p s s ( i n t n , i n t b , double ∗A, i n t Alda , i n t ∗i n f o ){ f o r ( k=1; k< = n ; k+=b ) { d p o t r f u ( b , &A r e f ( k , k ) , Alda , i n f o ) ; i f ( k+b < = n ) { f o r ( j=k+b ; k< = n ; k+=b ) d t r s m l u t n ( b , &A r e f ( k , k ) , &A r e f ( k , j ) , Alda ) ; f o r ( i=k+b ; i< = n ; i+=b ) { d s y r k u t ( b , &A r e f ( k , i ) , &A r e f ( i , i ) , Alda ) ; f o r ( j=i+b ; j< = n ; j+=b ) dgemm tn ( b , &A r e f ( k , i ) , &A r e f ( k , j ) , &A r e f ( i , j ) , Alda ) ; } } } } #pragma c s s task i n p u t ( b , ldm ) i n o u t ( A[ 1 ] , i n f o [ 1 ] ) void d p o t r f u ( i n t b , double A [ ] , i n t ldm , i n t ∗i n f o ){ d p o t r f ( ”Upper” , &b , A, &ldm , i n f o ) ; } #pragma c s s task i n p u t ( b , A[ 1 ] , ldm ) i n o u t ( B [ 1 ] ) void d t r s m l u t n ( i n t b , double A [ ] , double B [ ] , i n t ldm ){ double done = 1 . 0 ; dtrsm ( ” L e f t ” , ”Upper” , ” Transpose ” , ”Non u n i t ” , &b , &b , &done , A, &ldm , B, &ldm ) ; } #pragma c s s task i n p u t ( b , A[ 1 ] , ldm ) i n o u t ( C [ 1 ] ) void d s y r k u t ( i n t b , double A [ ] , double C [ ] , i n t ldm ){ double dmone = −1.0, done = 1 . 0 ; dsyrk ( ”Upper” , ” Transpose ” , &b , &b , &dmone , A, &ldm , &done , C, &ldm ) ; } #pragma c s s task i n p u t ( b , A[ 1 ] , B[ 1 ] , ldm ) i n o u t ( C [ 1 ] ) void dgemm tn ( i n t b , double A [ ] , double B [ ] , double C [ ] , i n t ldm ){ double dmone = −1.0, done = 1 . 0 ; dgemm( ” Transpose ” , ”No t r a n s p o s e ” , &b , &b , &b , &dmone , A, &ldm , B, &ldm , &done , C, &ldm ) ; } Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-16
SLIDE 16

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Algorithm specification Parallelization SMPSs operation

SMPSs operation

SMPSs runtime:

Queue of ready tasks (no dependencies) Queue of pending tasks + dependencies (DAG)

. . . . . .

Algorithm Symbolic Analysis Dispatch Worker Th. 1 Worker Th. 2 Worker Th. p Core 1 Core 2 Core p

Basic scheduling:

1

Initially only one a task in ready queue

2

A thread acquires a task of the ready queue and runs the corresponding job

3

Upon completion checks tasks which were in the pending queue moving to ready if their dependencies are satisfied.

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-17
SLIDE 17

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Power model formulation

Power model: P = PC(PU) + PS(Y )stem) = PS(tatic) + PD(ynamic) + PS(Y )stem)

PC(PU) Power dissipated by the CPU: PS(tatic) + PD(ynamic) PS(Y )stem) Power of remaining components (e.g. RAM)

Considerations:

Study case: Cholesky factorization. It exercises CPU+RAM and discards other power sinks (network interface, PSU, etc.) We assume PY and PS are constants! PS grows with the temperature inertia till maximum! ⇒ We consider a “hot” system!

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-18
SLIDE 18

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Power model formulation

Power model: P = PC(PU) + PS(Y )stem) = PS(tatic) + PD(ynamic) + PS(Y )stem)

PC(PU) Power dissipated by the CPU: PS(tatic) + PD(ynamic) PS(Y )stem) Power of remaining components (e.g. RAM)

Considerations:

Study case: Cholesky factorization. It exercises CPU+RAM and discards other power sinks (network interface, PSU, etc.) We assume PY and PS are constants! PS grows with the temperature inertia till maximum! ⇒ We consider a “hot” system!

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-19
SLIDE 19

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Environment setup

Setup:

Intel Xeon E5504 (2 quad-cores, total of 8 cores) @ 2.00 GHz with 32 GB RAM Intel MKL 10.3.9 for sequential dpotrf, dtrsm, dsyrk and dgemm kernels SMPSs 2.5 for task-level parallelism Performance and tracing modes are enabled Power measurements: pmlib library

Power tracing daemon Power tracing server Computer Mainboard Application node Power supply unit External powermeter powermeter Internal RS232 USB Ethernet

Internal power meter:

ASIC-based powermeter (own design!) LEM HXS 20-NP transductors with PIC microcontroller Sampling rate: 25 Hz Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-20
SLIDE 20

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

System and static power

Obtaining PS(Y )stem and PS(tatic) components:

PY directly obtained measuring idle platform: PY = 46.37 Watts PS obtained by executing dgemm kernel using 1 to 4 cores and adjusting via linear regression:

20 40 60 80 100 120 140 1 2 3 4 Power (Watts) # active cores Task power when using different number of cores MKL dgemm idle wait

Linear regression: Pdgemm(c) = α + β · c = 67.97 + 12.75 · c PS ≈ α − PY = 67.97 − 46.37 = 21.6 Watts

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-21
SLIDE 21

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Dynamic power

Dynamic power of kernels of the Cholesky factorization:

To obtain PD

K we continuously invoke the kernel K until power stabilizes and then sample

this value. Example for dgemm: PD

G = Pdgemm − PS − PY = Pdgemm − 67.97 Watts 1 kernel mapped to 1 core 2 kernels mapped to 2 cores of different sockets Block size, b Block size, b Task 128 192 256 512 128 192 256 512 PD P (dpotrf) 10.26 10.35 10.45 11.28 9.05 9.09 9.28 10.44 PD T (dtrsm) 10.12 10.31 10.32 10.80 9.45 9.57 9.60 11.08 PD S (dsyrk) 11.22 11.47 11.67 12.60 10.42 10.63 10.82 11.80 PD G (dgemm) 11.98 12.54 12.72 13.30 10.90 12.16 11.28 11.96 PD B (busy) 7.62 7.62 7.62 7.62 7.62 7.62 7.62 7.62

Power increases linearly with the number of threads, from 1 to 4 mapped to a single core When two sockets are used, linear function changes, so we take into account this issue: PD

G = Pdgemm − 67.97

2

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-22
SLIDE 22

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Power/energy model testing

Power model: PChol(t) = PY + PS + PD

Chol(t) = PY + PS + r

  • i=1

c

  • j=1

PD

i Ni,j(t)

r stands for the number of different types of tasks, (r=5 for Cholesky) c stands for the number of threads/cores PD

i

average dynamic power for task of type i Ni,j(t) equals to 1 if thread j is executing a task of type i at time t; equals 0 otherwise Energy model: EChol = (PY + PS)T + T

t=0

PD

Chol(t)

= (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i

T

t=0

Ni,j(t)

  • = (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i Ti,j

Ti,j total execution time for task of type i onto the core j Experimental model evaluation: Matrix sizes: n = 4096, 8192, . . . , 32768 Block sizes b = 128, 192, 256, 512 Cores/threads c = 2, 3, . . . , 8

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-23
SLIDE 23

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Power/energy model testing

Power model: PChol(t) = PY + PS + PD

Chol(t) = PY + PS + r

  • i=1

c

  • j=1

PD

i Ni,j(t)

r stands for the number of different types of tasks, (r=5 for Cholesky) c stands for the number of threads/cores PD

i

average dynamic power for task of type i Ni,j(t) equals to 1 if thread j is executing a task of type i at time t; equals 0 otherwise Energy model: EChol = (PY + PS)T + T

t=0

PD

Chol(t)

= (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i

T

t=0

Ni,j(t)

  • = (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i Ti,j

Ti,j total execution time for task of type i onto the core j Experimental model evaluation: Matrix sizes: n = 4096, 8192, . . . , 32768 Block sizes b = 128, 192, 256, 512 Cores/threads c = 2, 3, . . . , 8

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-24
SLIDE 24

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Formulation Environment setup Component estimation Power/energy model testing

Power/energy model testing

Power model: PChol(t) = PY + PS + PD

Chol(t) = PY + PS + r

  • i=1

c

  • j=1

PD

i Ni,j(t)

r stands for the number of different types of tasks, (r=5 for Cholesky) c stands for the number of threads/cores PD

i

average dynamic power for task of type i Ni,j(t) equals to 1 if thread j is executing a task of type i at time t; equals 0 otherwise Energy model: EChol = (PY + PS)T + T

t=0

PD

Chol(t)

= (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i

T

t=0

Ni,j(t)

  • = (PY + PS)T +

r

  • i=1

c

  • j=1

PD

i Ti,j

Ti,j total execution time for task of type i onto the core j Experimental model evaluation: Matrix sizes: n = 4096, 8192, . . . , 32768 Block sizes b = 128, 192, 256, 512 Cores/threads c = 2, 3, . . . , 8

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-25
SLIDE 25

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Energy model evaluation Power model evaluation

Energy model evaluation

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in total energy consumption, b=128 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in dynamic energy consumption, b=128 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in total energy consumption, b=192 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in dynamic energy consumption, b=192 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-26
SLIDE 26

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Energy model evaluation Power model evaluation

Energy model evaluation

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in total energy consumption, b=256 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in dynamic energy consumption, b=256 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in total energy consumption, b=512 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

  • 20
  • 15
  • 10
  • 5

5 10 15 20 4096 8192 12288 16384 20480 24576 28672 32768 Relative error (%) Matrix size Error in dynamic energy consumption, b=512 2 threads 3 threads 4 threads 5 threads 6 threads 7 threads 8 threads

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-27
SLIDE 27

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work Energy model evaluation Power model evaluation

Power model evaluation

Reconstruction of power profile using the power model ⇒ Performance trace is needed!

Trace of Cholesky factorization of order n = 20, 490 and block size b = 512, using 4 cores busy dpotrf dgemm dsyrk dtrsm Relative error in the estimated total power (reconstruction); Average error of 2.92% Relative error in the estimated dynamic power (reconstruction); Average error of 6.85% Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-28
SLIDE 28

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Conclusions and future work

Conclusions:

Elaboration and validation of an hybrid analytical-experimental model to estimate power/energy for the Cholesky factorization Experimental results reveal the accuracy of the model:

Energy consumption estimation: ±5% and ±15% of error for the total and dynamic energy, respectively Power profile estimation: relative average error of 2.92% and 6.85% for total and dynamic power, respectively

However, it is easier to obtain an energy estimation than a power profile estimation due to inaccuracy of power meter (around ±5%)!

Future work:

Predict power/energy even without executing the code! Initial step towards more ambitious goal ⇒ Development of models for the functionality of LAPACK Model extension to task-parallel procedures for distributed-memory platforms

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.

slide-29
SLIDE 29

Introduction Task-parallelism in the Cholesky factorization Power model Experimental results Conclusions and future work

Thanks for your attention!

Questions?

Manuel F. Dolz et al Modeling Power and Energy of Task-Parallel Cholesky on Multicore Proc.