On-the-Fly Pipeline Parallelism

Author:

Lee I-Ting Angelina1,Leiserson Charles E.2,Schardl Tao B.2,Zhang Zhunping2,Sukha Jim3

Affiliation:

1. MIT CSAIL

2. MIT CSAIL, Cambridge, MA

3. Intel Corporation, Hudson, MA

Abstract

Pipeline parallelism organizes a parallel program as a linear sequence of stages. Each stage processes elements of a data stream, passing each processed data element to the next stage, and then taking on a new element before the subsequent stages have necessarily completed their processing. Pipeline parallelism is used especially in streaming applications that perform video, audio, and digital signal processing. Three out of 13 benchmarks in PARSEC, a popular software benchmark suite designed for shared-memory multiprocessors, can be expressed as pipeline parallelism. Whereas most concurrency platforms that support pipeline parallelism use a “construct-and-run” approach, this article investigates “on-the-fly” pipeline parallelism, where the structure of the pipeline emerges as the program executes rather than being specified a priori . On-the-fly pipeline parallelism allows the number of stages to vary from iteration to iteration and dependencies to be data dependent. We propose simple linguistics for specifying on-the-fly pipeline parallelism and describe a provably efficient scheduling algorithm, the P iper algorithm, which integrates pipeline parallelism into a work-stealing scheduler, allowing pipeline and fork-join parallelism to be arbitrarily nested. The P iper algorithm automatically throttles the parallelism, precluding “runaway” pipelines. Given a pipeline computation with T 1 work and T span (critical-path length), P iper executes the computation on P processors in T P T 1 / P + O ( T ∞+lg P ) expected time. P iper also limits stack space, ensuring that it does not grow unboundedly with running time. We have incorporated on-the-fly pipeline parallelism into a Cilk-based work-stealing runtime system. Our prototype Cilk-P implementation exploits optimizations such as “lazy enabling” and “dependency folding.” We have ported the three PARSEC benchmarks that exhibit pipeline parallelism to run on Cilk-P. One of these, x264 , cannot readily be executed by systems that support only construct-and-run pipeline parallelism. Benchmark results indicate that Cilk-P has low serial overhead and good scalability. On x264 , for example, Cilk-P exhibits a speedup of 13.87 over its respective serial counterpart when running on 16 processors.

Funder

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Computer Science Applications,Hardware and Architecture,Modeling and Simulation,Software

Cited by 25 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A computational framework based on the dynamic pipeline approach;Journal of Logical and Algebraic Methods in Programming;2024-06

2. An Efficient Task-Parallel Pipeline Programming Framework;Proceedings of the International Conference on High Performance Computing in Asia-Pacific Region;2024-01-18

3. Studying the expressiveness and performance of parallelization abstractions for linear pipelines;Proceedings of the 14th International Workshop on Programming Models and Applications for Multicores and Manycores;2023-02-25

4. ODIN: Overcoming Dynamic Interference in iNference Pipelines;Euro-Par 2023: Parallel Processing;2023

5. Accelerating Face De-identification System for Real-time Video Surveillance Services;2022 13th International Conference on Information and Communication Technology Convergence (ICTC);2022-10-19

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3