Free to learn
    YouTube course
    24 lessons

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

    by The Julia Programming Language

    Explore efficient shared memory parallelism in Julia using multi-threading, focusing on nested parallelism and the parallel depth-first scheduling approach for improved performance.

    Start learning

    Watch at your own pace. Sign in to save progress.

    Shared Memory Parallelism in Julia with Multi-Threading - Parallel Depth-First Scheduling — course preview
    Video lessons play from YouTube

    About 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
    1. 1Welcome!0:27
    2. 2Why we need threads?1:08
    3. 3Task parallelism1:05
    4. 4Data parallelism0:51
    5. 5Julia's experimental threading infrastructure added in 2015/20160:59
    6. 6Successes of aforementioned threading infrastructure0:59
    7. 7What we've learned0:49
    8. 8Problem is not adding threads to Julia, but making them useful at every level0:33
    9. 9Nested parallelism: parallel code calling function from a library that is also parallel1:18
    10. 10Example: multiplying two n x n matrices1:10
    11. 11Example: running code sequentially0:40
    12. 12Example: you need O(n^2) space0:16
    13. 13Example: running code in parallel on 4 cores with OpenMP, OMP_NESTED = 10:58
    14. 14Example: such parallel code needs O(n^3) in space0:10
    15. 15Another way: work-stealing1:09
    16. 16Problem: work-stealing algorithm essentially run like a serial algorithm1:09
    17. 17Parallel depth-first scheduling1:54
    18. 18partr -- parallel task runtime1:22
    19. 19partr implementation1:14
    20. 20partr -- priority queues2:52
    21. 21partr -- handling nested parallelism1:58
    22. 22Possible problem: we do not synchronize at each spawn point0:50
    23. 23Why all these things are important?0:45
    24. 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