Главная
Study mode:
on
1
Welcome!
2
Why we need threads?
3
Task parallelism
4
Data parallelism
5
Julia's experimental threading infrastructure added in 2015/2016
6
Successes of aforementioned threading infrastructure
7
What we've learned
8
Problem is not adding threads to Julia, but making them useful at every level
9
Nested parallelism: parallel code calling function from a library that is also parallel
10
Example: multiplying two n x n matrices
11
Example: running code sequentially
12
Example: you need O(n^2) space
13
Example: running code in parallel on 4 cores with OpenMP, OMP_NESTED = 1
14
Example: such parallel code needs O(n^3) in space
15
Another way: work-stealing
16
Problem: work-stealing algorithm essentially run like a serial algorithm
17
Parallel depth-first scheduling
18
partr -- parallel task runtime
19
partr implementation
20
partr -- priority queues
21
partr -- handling nested parallelism
22
Possible problem: we do not synchronize at each spawn point
23
Why all these things are important?
24
Q&A: is Julia more suitable for implementation of partr than other languages?
Description:
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.

Shared Memory Parallelism in Julia with Multi-Threading - Parallel Depth-First Scheduling

The Julia Programming Language
Add to list