Performance Scaling
How is my parallel code performing and scaling?
Performance Scaling How is my parallel code performing and scaling? - - PowerPoint PPT Presentation
Performance Scaling How is my parallel code performing and scaling? Performance metrics Measure the execution time T how do we quantify performance improvements? Speed up typically S(N,P) < P Parallel efficiency
How is my parallel code performing and scaling?
Where N is the size of the problem and P the number of processors
changes as the number of processors is increased
number of processors, keeping the amount of work per processor the same
to achieve than weak scaling
50 100 150 200 250 300 50 100 150 200 250 300 Speed-up No of processors
Speed-up vs No of processors
linear actual
2 4 6 8 10 12 14 16 18 20 1 n Actual Ideal
Runtime (s)
“The performance improvement to be gained by parallelisation is limited by the proportion of the code which is serial” Gene Amdahl, 1967
Sharpen & CFD
T(N,P) =aT(N,1)+ (1-a)T(N,1) P S(N,P) = T(N,1) T(N,P) = P aP+(1-a)
less important
S(P,P) = a + (1-a) P
E(P,P) = a/P + (1-a)
T(N, P) = Tserial(N,P)+Tparallel(N,P) =aT(1,1)+ (1-a) N T(1,1) P
S(N,P) = T(N,1) T(N,P) = a +(1-a)N a +(1-a) N
P
T(N,1) =aT(1,1)+(1-a) N T(1,1)
task then the serial component will not dominate
problem size
CFD
Due to the scaling
fraction effectively becomes a/P
Number of processors Strong scaling (Amdahl’s law) Weak scaling (Gustafson’s law) 16 6.4 14.5 1024 9.9 921.7
number of processors
Person Anna Paul David Helen Total # boxes 6 1 3 2 12
LIF = maximum load / average load
balanced load
parallelising a serial problem
can take advantage of
and scales