arrow
Return

Loop-Block-Level Automatic Parallelization in Compilers

delete2026-02-03
delete0
delete
OA
AI
M
Mengyao Chen
Q
Qinglei Zhou *
K
Kai Nie
H
Haoran Li
DOI:10.3390/app16031533delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
To address the issues of coarse-grained thread allocation and difficult load balancing in compiler automatic parallelization for processors, this paper proposes a loop-block-level automatic parallelization method for compilers based on an iterative compilation mode, using the SWGCC compiler on the Sunway platform. An automatic parallelization method that independently sets the number of threads for each loop block is designed within the SWGCC, which allocates threads to each parallelizable loop block in the program at a finer granularity. Meanwhile, iterative compilation is combined with a genetic algorithm to iteratively optimize the optimal thread group. Through operations such as the chromosome encoding of thread allocation schemes, weighted mutation operations based on loop execution proportions, and fitness function-guided population evolution, the optimal thread combination is efficiently searched for the loop block thread allocation algorithm. Experiments are validated on the Sunway processor using the SPEC2006 test suite. The results reveal that the loop-block-level compiler automatic parallelization algorithm combined with the evolutionary algorithm achieves a maximum performance score improvement of 19% and an average performance score improvement of 4% compared to the baseline automatic parallelization algorithm in the tests.
Keywords:
compiler optimization
automatic parallelization
multi-threaded parallelism
iterative compilation
errShare
errSave
errShare
errSave
Parallel languages and compilers: Perspective from the Titanium experience
err2007-08-01
err17
errOAAI
errYelick, K.; Hilfinger, P.; Graham, S.; Bonachea, D.; Su, J.; Kamil, A.; Datta, K.; Colella, P.; Wen, T.
errShare
errSave

Journal

A
Applied Sciences-Basel
IF:
2.5
Papers:
7.6K
Citations:
2.9K

Organization

Zhengzhou University cover
Zhengzhou University
Scholars:
6.3K
Papers: 1.7K
Citations: 3.5W
Cited Papers

Cited Papers

Quantifying OpenMP: Statistical Insights into Usage and Adoption
err2023-09-25
err0
errOAAI
errTal Kadosh; Niranjan Hasabnis; Timothy Mattson; Yuval Pinter; Gal Oren
errShare
errSave
A graph-based iterative compiler pass selection and phase ordering approach
err2016-06-13
err0
PREAI
errRicardo Nobre; Luiz G. A. Martins; João M. P. Cardoso
errShare
errSave
An Adaptive Strategy for Inline Substitution
err2024-09-05
err0
errOAAI
errKeith D. Cooper; Timothy J. Harvey; Todd Waterman
errShare
errSave
Rescue to the Curse of universality
err2023-08-02
err0
PREAI
errZhao, Yongwei; Du, Zidong; Guo, Qi; Xu, Zhiwei; Chen, Yunji
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
A New Golden Age for Computer Architecture
err2019-01-28
err436
PREAI
errHennessy, John L.; Patterson, David A.
errShare
errSave
researcher View more