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

Advances in Engineering Software for Multicore Systems

Ali JannesariInTech 2018 · OpenAlex

Abstract The vast amounts of data to be processed by today’s applications demand higher computational power. To meet application requirements and achieve reasonable application performance, it becomes increasingly profitable, or even necessary, to exploit any available hardware parallelism. For both new and legacy applications, successful parallelization is often subject to high cost and price. This chapter proposes a set of methods that employ an optimistic semi-automatic approach, which enables programmers to exploit parallelism on modern hardware architectures. It provides a set of methods, including an LLVM-based tool, to help programmers identify the most promising parallelization targets and understand the key types of parallelism. The approach reduces the manual effort needed for parallelization. A contribution of this work is an efficient profiling method to determine the control and data dependences for performing parallelism discovery or other types of code analysis. Another contribution is a method for detecting code sections where parallel design patterns might be applicable and suggesting relevant code transformations. Our approach efficiently reports detailed runtime data dependences. It accurately identifies opportunities for parallelism and the appropriate type of parallelism to use as task-based or loop-based.

Introduction: The Parallelization Gap

As hardware architectures have transitioned toward multicore and manycore designs, software development has struggled to keep pace. Manual parallelization remains a complex, time-consuming endeavor, frequently introducing subtle concurrency bugs such as data races. Conversely, fully automatic parallelization by compilers is often overly conservative. Lacking runtime information—such as the actual targets of pointers—compilers frequently assume dependencies exist where they do not, leaving significant performance gains untapped.

To bridge this gap, we present DiscoPoP (Discovery of Potential Parallelism), a framework built on the LLVM compiler infrastructure. DiscoPoP offers a semiautomatic pipeline designed to help developers understand runtime data dependencies, identify parallelization "hotspots," and implement specific parallel design patterns.

The DiscoPoP Framework

The core of the DiscoPoP framework is an end-to-end pipeline that transforms sequential code into parallel programs through several distinct stages.

The DiscoPoP framework pipeline for semi-automatic parallelization.

The process begins with Dependence Profiling. Unlike static analysis, DiscoPoP instruments the program to track memory accesses during execution. To mitigate the significant overhead typical of dynamic profiling, it employs a lock-free design and signatures—probabilistic data structures similar to Bloom filters—to represent memory locations compactly. This "optimistic" approach assumes parallelism is possible unless a runtime dependency is explicitly observed, uncovering opportunities that static analysis would discard.

Computational Units and Pattern Identification

A key innovation in this work is the decomposition of code into Computational Units (CUs). A CU is defined as a basic building block following a read-compute-write pattern. By analyzing data flow through these units rather than relying on traditional language constructs like for loops, DiscoPoP can identify coarse-grained task parallelism in arbitrary code sections.

The tool constructs a CU Graph representing data dependencies and maps it onto a Program Execution Tree (PET) to capture control flow. Using template matching, the framework compares dependency patterns against known parallel design patterns, such as Pipeline, Do-all, Master/Worker, and Geometric Decomposition. Finally, the tool leverages Clang to rewrite the source code's Abstract Syntax Tree (AST), inserting Intel Threading Building Blocks (TBB) constructs and providing actionable suggestions to the developer.

Experimental Evaluation

The framework was evaluated using industry-standard benchmarks, including the NAS Parallel Benchmark suite, Starbench, PARSEC, and BOTS. These tests demonstrated that the profiler maintains manageable overhead while providing high-fidelity dependency data.

Average slowdown and memory consumption for NAS and Starbench benchmarks across different thread counts.

As shown in the performance data, the profiler limited average slowdown to 78x for NAS and 93x for Starbench when utilizing 16 threads. In terms of performance gains, automated loop parallelization achieved speedups of up to 3.12x, while task-based parallelization reached up to 9.92x. In a manual reproduction of the tool's suggestions for the ludcmp application, a 14x speedup was achieved on 32 threads. Furthermore, the correctness analysis component successfully identified over 85% of race conditions in tested variables.

Conclusion and Future Directions

While DiscoPoP significantly reduces the manual effort required for parallelization, it is subject to the inherent limitations of dynamic analysis. Results are sensitive to test inputs, and the use of probabilistic signatures introduces a low rate of false positives. Future work will focus on energy-efficient programming, integrating power-consumption metrics into the task decomposition process to optimize for both performance and battery life.

Summary updated

BibTeX
@inproceedings{jannesari2018advances,
  author = {Ali Jannesari},
  title = {{Advances in Engineering Software for Multicore Systems}},
  booktitle = {InTech},
  year = {2018},
  doi = {10.5772/intechopen.72784},
}
Figure