arXiv:2610.33995cs.DCOct 2026

Manuscript Offprint

arXiv:2610.33995

SGL: Towards a Bridging Model for Heterogeneous Hierarchical Platforms

Chong Li, Gaétan Hains

Abstract

This paper introduces the Scatter-Gather parallel-programming and parallel-execution model in the form of a simple imperative Scatter-Gather Language (SGL). Its design is based on past experience with bulk-synchronous parallel (BSP) programming and BSP language design. SGL's novel features are motivated by the last decade's move towards multi-level and heterogeneous parallel architectures involving multi-core processors, graphics accelerators and hierarchical routing networks in the largest multiprocessing systems. The design of SGL is coherent with L. Valiant's Multi-BSP while offering a programming interface that is even simpler than the primitives of Bulk-Synchronous Parallel ML (BSML). SGL appears to cover a large subset of all BSP algorithms while avoiding complex message-passing programming. Like all BSP-inspired systems, it supports predictable, portable and scalable performance. Moreover, SGL's explicit data distribution will allow automatic or programmable load-balancing.

Keywords: programming environment; scalable parallel computing; hierarchical and heterogeneous architectures; performance prediction; bridging model; bulk-synchronous parallel; scatter-gather language; high-performance computing.

Publication note. This is an author-prepared version, based on the accepted manuscript, of the article C. Li and G. Hains, “SGL: towards a bridging model for heterogeneous hierarchical platforms”, International Journal of High Performance Computing and Networking, 7(2):139–151, 2012, © Inderscience Enterprises Ltd. The definitive version is available at https://doi.org/10.1504/IJHPCN.2012.046371.

1 Introduction

Parallel programming and data-parallel algorithms have been the main techniques supporting high-performance computing for many decades. Like all non-functional properties of software, the conversion of computing resources into scalable and predictable performance involves a delicate balance of abstraction and automation with semantic precision.

With these goals in mind we apply the notion of explicit processes, because parallel speed-up cannot be part of programming semantics without an explicit notion of the number of physical parallel processors. A language for parallel algorithms must not express a function from computation events to physical units (which may not be injective) but just the inverse.

For bridging the gap between parallel systems and parallel algorithms, a major conceptual step was taken by Valiant (1990), who introduced his bulk-synchronous parallel (BSP) model. Inspired by complexity theory's PRAM model of parallel computers, Valiant proposed that

*Corresponding author: chong.li@ieee.org; ORCID: 0000-0002-4160-7170 parallel algorithms be designed and measured by accounting not only for the classical balance between time and parallel space (the number of processors) but also for communication and synchronisation. A BSP computation is a sequence of so-called supersteps. Each superstep combines asynchronous local computation with point-to-point communications that are coordinated by a global synchronisation to ensure coherence and determinism. The resulting performance model is both realistic and tractable, so that researchers like McColl and Walker (1998) were able to define BSP versions of all important PRAM algorithms, implement them and verify their portable and scalable performance as predicted by the model. BSP is thus a bridging model relating parallel algorithms to hardware architectures. A well-known implementation of BSP is the Paderborn University BSP library, or PUB (Bonorden et al., 2003). This work has been extended by many similar models: LogP (Culler et al., 1993), LogGP (Alexandrov et al., 1995) for long messages, HLogGP (Bosque and Pastor, 2004) for heterogeneous processors, LogGPO (Chen et al., 2009) to account for computation-communication overlap, and the CGM model (Dehne et al., 1993).

Loulergue et al. (2000) designed BS- λ\lambda as a minimal model of computation with BSP operations (an extension of the λ\lambda-calculus). BS- λ\lambda became the basis for Bulk-Synchronous Parallel ML, BSML (Loulergue, 2000, 2010), a variant of Caml. BSML offers a purely functional semantics and a simple programming interface of only four operations: mkpar to construct parallel vectors indexed by processors, proj to map them back to lists/arrays, apply to generate asynchronous parallel computation, and put to generate communication and global synchronisation from a two-dimensional processor-processor pairing. As a result, parallel performance mathematically follows from program semantics and the BSP parameters of the host architecture.

By comparison with BSML, our new Scatter-Gather Language (SGL) model can be understood as:

  1. a generalisation to hierarchical architectures, by breaking the restriction to a flat vector of processors;

  2. a simplified set of primitives, where the “many-to-many” processor relations of put are replaced by simpler “one-to-all” and “all-to-one” relations.

Our presentation of SGL is in the form of an imperative language, while BSML is a variant of ML, hence a functional language. But that last difference is less important than the above two.

Among the earlier works on BSML, the grid or departmental meta-computing ML (DMML) model and language of Gava and Loulergue (2005) described a two-level BSP. Its lower level represents local parallel clusters and its top level a grid of such systems. SGL is both a generalisation of this design, for systems that have potentially more levels, and a restriction of the programming interface, by avoiding the most general communication operator put. SGL can cover lower levels inside the machines and also higher levels, for example from multi-core processors like the Nvidia Tesla or the STI Cell to giant systems like Tera-100 or Blue Gene. An analysis of the exact differences between both models remains to be done, but the experience gained on DMML will be reused for investigating and developing SGL.

SGL is well adapted to BSP-like algorithms whose communication patterns are all-to-all maps, but we believe that all BSP algorithms can be programmed in SGL for the following reasons. SGL can trivially emulate any BSP communication phase by simply concentrating all messages (gather), then reordering them sequentially before sending them to their destinations (scatter). But a random “horizontal” communication pattern could also be implemented natively after having been written as a gather-reorder-scatter sequence and then automatically converted into put or send-receive operations. This kind of optimisation is beyond the scope of this paper, but we have begun analysing its possibility in the language semantics.

SGL models parallel machines more precisely than BSP. SGL parameters take into consideration both the machine's computation performance and its communication performance. SGL's cost model can inform developers whether or not the root of a hierarchical tree-structured machine, such as a GPU cluster, can be a bottleneck. SGL can also help hardware vendors measure whether a new technology can be useful for a particular machine. For example, the well-known hierarchical tree-structured parallel machine CM-5 (Leiserson et al., 1992), using a fat-tree (Leiserson, 1985) architecture for its data network, had good performance according to SGL's communication parameters.

The next section gives precise arguments that motivate our SGL model, in the context of existing similar models like BSP or LogP. Section 3 then describes the SGL model's abstract machine, execution model and cost model, relating machine parameters to actual algorithm performance. Section 4 formally defines the programming model as the operational semantics of an imperative mini-language. Section 5 presents and analyses performance-measurement experiments for primitive algorithms. Finally, Sections 6 and 7 conclude with a summary of ongoing work and open problems related to SGL.