Presentation is loading. Please wait.

Presentation is loading. Please wait.

“elbowing out” Processors used Speedup Efficiency timeexecution Parallel Processors timeexecution Sequential Efficiency   

Similar presentations


Presentation on theme: "“elbowing out” Processors used Speedup Efficiency timeexecution Parallel Processors timeexecution Sequential Efficiency   "— Presentation transcript:

1

2

3

4

5

6

7

8

9

10 “elbowing out”

11 Processors used Speedup Efficiency timeexecution Parallel Processors timeexecution Sequential Efficiency   

12 All terms > 0   (n,p) > 0 Denominator > numerator   (n,p) < 1

13 Let f =  (n)/(  (n) +  (n)); i.e., f is the fraction of the code which is inherently sequential

14

15 15 CS 491 – Parallel and Distributed Computing

16

17

18

19

20 n = 100 n = 1,000 n = 10,000 Speedup Processors

21

22

23 Let T p =  (n)+  (n)/p = 1 unit Let s be the fraction of time that a parallel program spends executing the serial portion of the code. s =  (n)/(  (n)+  (n)/p) Then,   = T 1 /T p = T 1 <= s + p*(1-s) (the scaled speedup) Thus, sequential time would be p times the parallelized portion of the code plus the time for the sequential portion.

24   <= s + p*(1-s) (the scaled speedup) Restated, Thus, sequential time would be p times the parallel execution time minus (p-1) times the sequential portion of execution time.

25

26 Execution on 1 CPU takes 10 times as long… …except 9 do not have to execute serial code

27

28

29

30 Inherently serial component of parallel computation + processor communication and synchronization overhead Single processor execution time

31

32 p234567 1.82.53.13.64.04.4 8 4.7  What is the primary reason for speedup of only 4.7 on 8 CPUs? e0.1 Since e is constant, large serial fraction is the primary reason.

33 p234567 1.92.63.23.74.14.5 8 4.7  What is the primary reason for speedup of only 4.7 on 8 CPUs? e0.0700.0750.0800.0850.0900.0950.100 Since e is steadily increasing, overhead is the primary reason.

34

35

36 Determine overhead Substitute overhead into speedup equation Substitute T(n,1) =  (n) +  (n). Assume efficiency is constant. Hence, T 0 /T 1 should be a constant fraction. Isoefficiency Relation

37 where Isoefficiency Relation Problem size Sequential complexity Serial and communication overhead

38

39

40 Number of processors Memory needed per processor Cplogp Cp Clogp C Memory Size per processor Can maintain efficiency Cannot maintain efficiency

41

42

43

44

45

46

47

48

49


Download ppt "“elbowing out” Processors used Speedup Efficiency timeexecution Parallel Processors timeexecution Sequential Efficiency   "

Similar presentations


Ads by Google