[Paper Review] A Tale of Three Runtimes
This paper presents an automatic, compiler-driven approach to generate event-driven, tuple-space-based programs from sequential C code for three distinct runtimes—Intel's CnC, ETI's SWARM, and OCR—using a hierarchical mapping strategy and a runtime-agnostic C++ abstraction layer. The method exploits loop permutable types to enable efficient, conservative synchronization and achieves high performance with minimal overhead, especially at optimal task granularity.
This contribution discusses the automatic generation of event-driven, tuple-space based programs for task-oriented execution models from a sequential C specification. We developed a hierarchical mapping solution using auto-parallelizing compiler technology to target three different runtimes relying on event-driven tasks (EDTs). Our solution benefits from the important observation that loop types encode short, transitive relations among EDTs that are compact and efficiently evaluated at runtime. In this context, permutable loops are of particular importance as they translate immediately into conservative point-to-point synchronizations of distance 1. Our solution generates calls into a runtime-agnostic C++ layer, which we have retargeted to Intel's Concurrent Collections (CnC), ETI's SWARM, and the Open Community Runtime (OCR). Experience with other runtime systems motivates our introduction of support for hierarchical async-finishes in CnC. Experimental data is provided to show the benefit of automatically generated code for EDT-based runtimes as well as comparisons across runtimes.
Motivation & Objective
- To enable automatic, portable generation of event-driven, tuple-space-based programs from sequential C specifications for multiple runtimes.
- To address the challenge of mapping sequential code to scalable, fine-grained task-based execution models on deep memory hierarchies.
- To reduce runtime overhead in fine-grained tasking by optimizing task creation and dependence management through loop type analysis.
- To enable cross-runtime comparison and porting of high-performance kernels via a unified, retargetable abstraction layer.
- To support future architectural evolution, including exascale systems with deep memory hierarchies, through portable, reusable code generation.
Proposed method
- The approach uses auto-parallelizing compiler technology to restructure loop nests into a logical tree representation, enabling hierarchical task decomposition.
- It identifies loop types (especially permutable loops) to infer conservative, distance-1 point-to-point synchronizations between event-driven tasks (EDTs).
- A runtime-agnostic C++ layer (RAL) abstracts common EDT programming model patterns, enabling retargeting to CnC, SWARM, and OCR.
- The framework supports hierarchical async-finishes, improving load balancing and reducing synchronization bottlenecks in large-scale execution.
- Dependence information is extracted from restructured loops and used to generate tuple-space-based task dependencies at compile time.
- Expression templates are used to represent multi-dimensional dependence spaces, enabling efficient, scalable dependence resolution at runtime.
Experimental results
Research questions
- RQ1Can a single compiler-based framework automatically generate efficient, portable event-driven code for multiple EDT-based runtimes?
- RQ2How does the use of permutable loop types enable efficient, conservative synchronization in event-driven task graphs?
- RQ3What is the performance overhead of fine-grained task management across different runtimes, and how does it scale with task size?
- RQ4Can a unified, retargetable abstraction layer reduce the effort of porting high-performance kernels across diverse runtime systems?
- RQ5What is the impact of task granularity on effective work ratio and overall performance in event-driven execution models?
Key findings
- The framework successfully retargeted to Intel’s CnC, ETI’s SWARM, and the Open Community Runtime (OCR), demonstrating cross-runtime portability.
- At optimal task granularity (e.g., 16-16-16 tiles), performance reached up to 14.39 Gflop/s on OCR for the SOR kernel, showing strong scalability.
- With granularity 4, over 85% of non-idle time was spent on effective work in OCR, indicating low overhead at moderate task sizes.
- At finer granularity (e.g., 10-10-100), the effective work ratio dropped to 10%, with up to 80% of time spent on task stealing and queue management, revealing a critical performance threshold.
- The overhead of managing fine-grained EDTs remains high, especially below a certain task size, suggesting a need for further optimization in runtime systems.
- The use of permutable loops enabled immediate, conservative synchronization with distance-1, simplifying dependence management and improving performance.
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.