A Sophomoric Introduction to Shared-Memory Parallelism and Concurrency Lecture 3 Parallel Prefix, Pack, and Sorting
Steve Wolfman, based on work by Dan Grossman
(with really tiny tweaks by Alan Hu)
A Sophomoric Introduction to Shared-Memory Parallelism and - - PowerPoint PPT Presentation
A Sophomoric Introduction to Shared-Memory Parallelism and Concurrency Lecture 3 Parallel Prefix, Pack, and Sorting Steve Wolfman, based on work by Dan Grossman (with really tiny tweaks by Alan Hu) Learning Goals Judge appropriate
(with really tiny tweaks by Alan Hu)
2 Sophomoric Parallelism and Concurrency, Lecture 2
3 Sophomoric Parallelism and Concurrency, Lecture 3
4 Sophomoric Parallelism and Concurrency, Lecture 3
5 Sophomoric Parallelism and Concurrency, Lecture 3
6 Sophomoric Parallelism and Concurrency, Lecture 3
7 Sophomoric Parallelism and Concurrency, Lecture 3
8 Sophomoric Parallelism and Concurrency, Lecture 3
9 Sophomoric Parallelism and Concurrency, Lecture 3
10 Sophomoric Parallelism and Concurrency, Lecture 3
11 Sophomoric Parallelism and Concurrency, Lecture 3
return left+right; return new Node(left->sum + right->sum, left, right);
12 Sophomoric Parallelism and Concurrency, Lecture 3
13 Sophomoric Parallelism and Concurrency, Lecture 3
14 Sophomoric Parallelism and Concurrency, Lecture 3
In practice, of course, we’d use a sequential cutoff!
15 Sophomoric Parallelism and Concurrency, Lecture 3
16 Sophomoric Parallelism and Concurrency, Lecture 3
17 Sophomoric Parallelism and Concurrency, Lecture 3
18 Sophomoric Parallelism and Concurrency, Lecture 3
19 Sophomoric Parallelism and Concurrency, Lecture 3
(compute bit-vector with a parallel map)
(compute bit-sum with a parallel prefix sum)
(emplace output with a parallel map)
20 Sophomoric Parallelism and Concurrency, Lecture 3
As usual, we can make lots of efficiency tweaks… with no asymptotic impact.
21 Sophomoric Parallelism and Concurrency, Lecture 3
22 Sophomoric Parallelism and Concurrency, Lecture 3
23 Sophomoric Parallelism and Concurrency, Lecture 3
24 Sophomoric Parallelism and Concurrency, Lecture 3
25 Sophomoric Parallelism and Concurrency, Lecture 3
26 Sophomoric Parallelism and Concurrency, Lecture 3
27 Sophomoric Parallelism and Concurrency, Lecture 3
28 Sophomoric Parallelism and Concurrency, Lecture 3
29 Sophomoric Parallelism and Concurrency, Lecture 3
30 Sophomoric Parallelism and Concurrency, Lecture 3
31 Sophomoric Parallelism and Concurrency, Lecture 3
32 Sophomoric Parallelism and Concurrency, Lecture 3
33 Sophomoric Parallelism and Concurrency, Lecture 3
34 Sophomoric Parallelism and Concurrency, Lecture 3
35 Sophomoric Parallelism and Concurrency, Lecture 3
36 Sophomoric Parallelism and Concurrency, Lecture 3
37 Sophomoric Parallelism and Concurrency, Lecture 3
38 Sophomoric Parallelism and Concurrency, Lecture 3
39 Sophomoric Parallelism and Concurrency, Lecture 3
40 Sophomoric Parallelism and Concurrency, Lecture 3
41 Sophomoric Parallelism and Concurrency, Lecture 3
42 Sophomoric Parallelism and Concurrency, Lecture 3
43 Sophomoric Parallelism and Concurrency, Lecture 3
44 Sophomoric Parallelism and Concurrency, Lecture 3
In practice, of course, we’d use a sequential cutoff!
45 Sophomoric Parallelism and Concurrency, Lecture 3
46 Sophomoric Parallelism and Concurrency, Lecture 3
As usual, we can make lots of efficiency tweaks… with no asymptotic impact.
47 Sophomoric Parallelism and Concurrency, Lecture 3
48 Sophomoric Parallelism and Concurrency, Lecture 3
49 Sophomoric Parallelism and Concurrency, Lecture 3