[Paper Review] Bulk-synchronous pseudo-streaming algorithms for many-core accelerators
This paper introduces Bulk-Synchronous Pseudo-Streaming (BSPS), a generalized BSP model tailored for many-core coprocessors with limited local memory. It extends the classic BSP cost function to predict performance and identify bottlenecks, validated through implementations of Cannon’s algorithm on the Parallella board, showing accurate runtime prediction and effective load balancing via hyperstep analysis.
The bulk-synchronous parallel (BSP) model provides a framework for writing parallel programs with predictable performance. In this paper we extend the BSP model to support what we will call pseudo-streaming algorithms for accelerators. We also generalize the BSP cost function to these algorithms, so that it is possible to predict the running time for programs targeting many-core accelerators and to identify possible bottlenecks. Several examples of algorithms within this new framework will be explored. We extend the BSPlib standard by proposing a small number of new BSP primitives to create and use streams in a portable way. We will introduce a software library called Epiphany BSP that implements these ideas for the Parallella development board. Finally we will give experimental results for pseudo-streaming algorithms on the Parallella platform.
Motivation & Objective
- To address the performance prediction gap for BSP algorithms on many-core coprocessors with limited local memory.
- To extend the classical BSP model to handle streaming-like constraints inherent in modern many-core accelerators.
- To enable accurate runtime prediction and bottleneck identification in parallel programs targeting these systems.
- To ensure portability and standardization through a minimal extension to BSPlib and a new software library, Epiphany BSP.
- To validate the framework with real-world implementations and experimental measurements on the Parallella platform.
Proposed method
- Proposes Bulk-Synchronous Pseudo-Streaming (BSPS) as an extension of the BSP model, integrating streaming constraints into the superstep abstraction.
- Generalizes the BSP cost function to include communication volume and synchronization overhead, using parameters $ l $ (latency) and $ g $ (inverse bandwidth) derived from hardware measurements.
- Introduces the hyperstep concept, where $ k = n / (N M) $, to balance computation and communication, with $ k_{\text{equal}} \approx 8 $ marking the transition between communication- and computation-heavy phases.
- Defines a new cost function: $ T = \sum_{i=0}^{k-1} \left( \max_s w_i^{(s)} + g h_i + l \right) $, where $ h_i $ is the maximum communication volume per processor in superstep $ i $.
- Develops the Epiphany BSP library to implement BSPS primitives on the Parallella board, extending BSPlib with minimal, portable additions.
- Employs hardware clock calibration to isolate true communication and synchronization costs, yielding $ l \approx 136~\text{FLOP} $ and $ g \approx 5.59~\text{FLOP/float} $.
Experimental results
Research questions
- RQ1How can the BSP model be extended to support efficient execution on many-core coprocessors with limited local memory?
- RQ2Can a generalized cost function be derived for BSPS algorithms that accurately predicts runtime and identifies performance bottlenecks?
- RQ3To what extent does the hyperstep parameter $ k $ enable effective load balancing between computation and communication in BSPS algorithms?
- RQ4How can BSPS be made portable and interoperable across different many-core platforms?
- RQ5Can the BSPS framework be effectively applied to real HPC workloads such as dense matrix multiplication?
Key findings
- The BSPS cost function successfully predicts runtime behavior of Cannon’s algorithm on the Epiphany-III processor, with experimental results closely matching theoretical predictions.
- The transition point between communication-heavy and computation-heavy hypersteps occurs at $ k_{\text{equal}} \approx 8 $, which aligns with observed performance trends in the experiments.
- Measured latency $ l \approx 136~\text{FLOP} $ and inverse bandwidth $ g \approx 5.59~\text{FLOP/float} $ provide accurate hardware cost parameters for performance modeling.
- The Epiphany BSP library enables portable implementation of BSPS algorithms on the Parallella platform, demonstrating the feasibility of the framework.
- The framework is extensible to other domains, including real-time video processing and sparse matrix operations, suggesting broad applicability in Big Data and HPC.
- The model’s accuracy is validated by consistent alignment between theoretical cost analysis and measured execution times across varying matrix sizes and block sizes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.