1
SMM (3) COMP 633 - Prins
- Reference material for this lecture
– OpenMP 3.1 Tutorial – Cilk Plus Tutorial
- Cilk Plus Keywords
COMP 633 - Parallel Computing Lecture 8 September 8, 2020 SMM (3) - - PowerPoint PPT Presentation
COMP 633 - Parallel Computing Lecture 8 September 8, 2020 SMM (3) Nested Parallelism Reference material for this lecture OpenMP 3.1 Tutorial Cilk Plus Tutorial Cilk Plus Keywords COMP 633 - Prins SMM (3) 1 Topics
1
SMM (3) COMP 633 - Prins
2
SMM (3) COMP 633 - Prins
3
SMM (3) COMP 633 - Prins
4
SMM (3) COMP 633 - Prins
S(0) = 0 S(1) S(2) .... S(n-1) S(n) = nz
5
SMM (3) COMP 633 - Prins
6
SMM (3) COMP 633 - Prins
7
SMM (3) COMP 633 - Prins
8
SMM (3) COMP 633 - Prins
9
SMM (3) COMP 633 - Prins
fib(4) fib(3) fib(2) fib(1) fib(2) fib(1) fib(1) fib(0) fib(0) fib(4) fib(3) fib(2) fib(1) fib(2) fib(1) fib(1) fib(0) fib(0)
10
SMM (3) COMP 633 - Prins
11
SMM (3) COMP 633 - Prins
12
SMM (3) COMP 633 - Prins
13
SMM (3) COMP 633 - Prins
14
SMM (3) COMP 633 - Prins
15
SMM (3) COMP 633 - Prins
16
SMM (3) COMP 633 - Prins
17
SMM (3) COMP 633 - Prins
18
SMM (3) COMP 633 - Prins
19
SMM (3) COMP 633 - Prins
20
SMM (3) COMP 633 - Prins
21
SMM (3) COMP 633 - Prins
22
SMM (3) COMP 633 - Prins
23
SMM (3) COMP 633 - Prins
24
SMM (3) COMP 633 - Prins
25
SMM (3) COMP 633 - Prins
26
SMM (3) COMP 633 - Prins
27
SMM (3) COMP 633 - Prins
30
SMM (3) COMP 633 - Prins
31
SMM (3) COMP 633 - Prins
32
SMM (3) COMP 633 - Prins
33
SMM (3) COMP 633 - Prins
34
SMM (3) COMP 633 - Prins
C C C C H H G G G G G G FORALL (i = 1,4) WHERE C(i) DO FORALL (j = 1,i) DO G(i,j) END FORALL ELSEWHERE H(i) END WHERE END FORALL
35
SMM (3) COMP 633 - Prins
FORALL (i = 1,4) WHERE C(i) DO FORALL (j = 1,i) DO G(i,j) END FORALL ELSEWHERE H(i) END WHERE END FORALL S1 S2 S3 C C C C H H G G G G G G
36
SMM (3) COMP 633 - Prins
[( [(1.0 .0,1 ,1), ), (0 (0.4 .4,3 ,3), ), (0 (0.5 .55, 5,4)] )], [( [(1.0 .0,2 ,2), ), (0 (0.1 .15, 5,9) 9), ( (0. 0.18 18,18 187) 7)], ], . . . [( [(0.2 .2,3 ,385 850), ), ( (1. 1.0, 0,416 165) 5)]
37
SMM (3) COMP 633 - Prins
arithmetic opns e.g. plus(1,1) = 2 vector arithmetic opns e.g. plus'(V,V) = [2,4,6]
sum(V) = 6 sum'(W) = [1,3,6] size(V) = 3 size'(W) = [1,2,3] range(3) = [1,2,3] range'(V) = [ [1], [1,2], [1,2,3]] index(V,3) = 3 index'(W,V) = [1,2,3] dist(1,3) = [1,1,1] dist'(V,V) = [ [1], [2,2], [3,3,3] ]
W = [ [1], [1,2], [1,2,3] ] V = [1,2,3]
38
SMM (3) COMP 633 - Prins
S(0) = 0 S(1) S(2) .... S(n-1) S(n) = nz
39
SMM (3) COMP 633 - Prins
40
SMM (3) COMP 633 - Prins
41
SMM (3) COMP 633 - Prins
4
4
4
NEC SX-4/32 Cray C90/16 IBM SP2-P2SC Cray T3E
42
SMM (3) COMP 633 - Prins