32 minAbout this course
Explore shared memory parallelism in Julia through this 27-minute conference talk from the Cambridge Julia Meetup in May 2018. Dive into the challenges of nested parallelism and learn about parallel depth-first scheduling as a promising solution. Discover the implementation of PDF scheduling in Julia, including the parallel task runtime (partr) and its handling of priority queues and nested parallelism. Gain insights into why effective threading models are crucial for high-performance computing and how Julia aims to overcome limitations found in existing models like OpenMP and work-stealing algorithms. Follow along with detailed examples, including matrix multiplication, to understand the space complexity issues in parallel programming. Conclude with a Q&A session discussing Julia's suitability for implementing advanced parallel computing concepts.
Course curriculum
24 lessons- 1Welcome!0:27
- 2Why we need threads?1:08
- 3Task parallelism1:05
- 4Data parallelism0:51
- 5Julia's experimental threading infrastructure added in 2015/20160:59
- 6Successes of aforementioned threading infrastructure0:59
- 7What we've learned0:49
- 8Problem is not adding threads to Julia, but making them useful at every level0:33
- 9Nested parallelism: parallel code calling function from a library that is also parallel1:18
- 10Example: multiplying two n x n matrices1:10
- 11Example: running code sequentially0:40
- 12Example: you need O(n^2) space0:16
- 13Example: running code in parallel on 4 cores with OpenMP, OMP_NESTED = 10:58
- 14Example: such parallel code needs O(n^3) in space0:10
- 15Another way: work-stealing1:09
- 16Problem: work-stealing algorithm essentially run like a serial algorithm1:09
- 17Parallel depth-first scheduling1:54
- 18partr -- parallel task runtime1:22
- 19partr implementation1:14
- 20partr -- priority queues2:52
- 21partr -- handling nested parallelism1:58
- 22Possible problem: we do not synchronize at each spawn point0:50
- 23Why all these things are important?0:45
- 24Q&A: is Julia more suitable for implementation of partr than other languages?
About the creator
The Julia Programming Language
Course content available on YouTube.
Explore related subjects
More from this channel
See all
32 min
58 min
25 min
31 min
11 min
15 min