NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pipeflow: An Efficient Task-Parallel Pipeline Programming Framework using Modern C++

Cheng-Hsiang Chiu, Tsung-Wei Huang, Zizheng Guo, Yibo LinarXiv 2022

Introduction: The Challenge of Data-Centric Pipelines

Pipeline parallelism is a staple in high-performance computing, allowing multiple data "tokens" to be processed across a linear chain of stages simultaneously. However, most mainstream frameworks, such as Intel’s oneTBB or FastFlow, are inherently data-centric. They require users to wrap their application data in library-specific abstractions to handle scheduling.

While convenient for simple stream processing, this approach creates a bottleneck for complex, irregular algorithms—specifically in Electronic Design Automation (EDA/CAD). In these fields, data structures like massive circuit graphs are custom-built and do not map cleanly to generic library wrappers. Forcing this mapping leads to redundant data conversion, high memory overhead, and poor "composability"—the ability to mix pipelines with other parallel patterns like task graphs.

The Pipeflow Architecture

The authors introduce Pipeflow, built atop the open-source Taskflow library. Its core philosophy is to provide a "pipeline scheduling framework" rather than a "data processing library." By decoupling the when (scheduling) from the what (data), Pipeflow eliminates the "abstraction tax" associated with traditional frameworks.

Figure 1: A pipeline model illustrating the flow of data tokens through serial and parallel stages across multiple parallel lines.

Key Innovations

  • Data-Agnostic Scheduling: Pipeflow does not provide data abstractions. Users manage their own data (e.g., in a simple 1D array indexed by the pipeline "line"), giving them full control over memory layout and access patterns.
  • Circular Token Model: To keep scheduling lightweight, Pipeflow ensures only one scheduling token exists per parallel "line." Tokens move through stages in a circular fashion across parallel lines, simplifying dependency management.
  • Composability and Scalability: Because it is built on Taskflow, a Pipeflow pipeline can be a single node within a larger, more complex task graph. The framework also includes a ScalablePipeline interface, allowing the number of stages to be defined or changed at runtime, which is critical for problem-size-dependent algorithms.
Figure 2: An example of Pipeflow's composability, showing a VLSI design flow where logic gates are levelized before being scheduled into a multi-stage pipeline.

Performance and Real-World Evaluation

The authors evaluated Pipeflow using micro-benchmarks and real-world VLSI workloads, including Static Timing Analysis (STA) and Detailed Placement using large-scale industrial designs from the ISPD contests (e.g., bigblue4 with 2.1 million instances).

Key Results

  • Performance Gains: In the VLSI placement task (bigblue4), Pipeflow was 24% faster than oneTBB. In timing analysis, it achieved a 10% speedup.
  • Memory Efficiency: Pipeflow consistently used less memory. In micro-benchmarks with 65K tokens, it consumed roughly 21% less memory than oneTBB because it avoids internal data buffering.
  • Throughput and Locality: Pipeflow’s throughput was 1.1x to 1.7x better than oneTBB in multi-program environments. The scheduling algorithm prioritizes running the next stage of a pipeline on the same thread immediately after the current stage finishes, significantly improving data locality and cache performance.

Conclusion

Pipeflow demonstrates that for high-performance irregular algorithms, the library should stay out of the data's way. While the lack of data abstraction requires more manual management from the developer, the trade-off is a significant reduction in overhead and a major boost in performance. Future work will explore Pipeflow's application in broader High-Performance Computing (HPC) domains beyond circuit design.

Summary updated

BibTeX
@misc{chiu2022pipeflow,
  author = {Cheng-Hsiang Chiu and Tsung-Wei Huang and Zizheng Guo and Yibo Lin},
  title = {{Pipeflow: An Efficient Task-Parallel Pipeline Programming Framework using Modern C++}},
  year = {2022},
  eprint = {2202.00717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00717},
}
Figure