Automatically Parallelizing Unstructured Mesh Computations on Many-core CPU using Recursive Partitioning

Data-conflict handling is essential for parallelizing unstructured-mesh applications, yet existing approaches often force trade off efficiency against usability. Traditional mesh coloring methods, while simple, frequently disrupt execution order and degrade data locality. In contrast, recursive partitioning preserves locality but typically relies on hand-crafted schemes that are complex, non-portable, and intrusive to production code. To bridge this gap, we propose Automatic Recursive Partitioning Tree (ARPT), a framework designed to automate conflict-free parallelization for unstructured-mesh Domain-Specific Languages (DSLs). The core of ARPT lies in its ability to reconcile performance with automation. On one hand, it constructs a recursive partition tree via mesh renumbering and isolator regions, ensuring conflict-free execution while maximizing spatial locality on many-core CPUs. On the other hand, to eliminate manual effort, ARPT leverages domain-specific abstract syntax trees (DS-ASTs) and a specialized transformation pipeline. This pipeline recovers mesh-level topology and analyzes per-loop access patterns to generate all necessary partitioning, reordering, and synchronization code. Experiments on the representative OP2 benchmark Airfoil on four multi-core CPU platforms show that ARPT reduces developer-visible conflict-handling code from 766 to 6 source lines (a 99.22% reduction) and achieves up to 1.80 × end-to-end speedup and up to 2.92 × kernel speedup over existing DSL conflict-handling backends in the main experiments. We further extend ARPT automatically to the complicated high-order Discontinuous Galerkin (DG) solver HOUR2D, where it delivers consistent positive speedups for conflict-prone face-to-cell kernels across four CPU platforms, further demonstrating the generality of ARPT.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Architecture and Code Optimization
Published
2026-12-03
DOI
https://doi.org/10.1145/3872847
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Automatically Parallelizing Unstructured Mesh Computations on Many-core CPU using Recursive Partitioning

Haozhong Qiu, Chuanfu Xu, Xinxin Qi, Z. G. Dai et al.
ACM Transactions on Architecture and Code Optimization
Parallel Computing and Optimization Techniques
article

Automatically Parallelizing Unstructured Mesh Computations on Many-core CPU using Recursive Partitioning

Haozhong Qiu, Chuanfu Xu, Xinxin Qi, Z. G. Dai, Jian Zhang, Yonggang Che, Tong Lei, Ya Zhang, Yan Wang
article en

Abstract

Data-conflict handling is essential for parallelizing unstructured-mesh applications, yet existing approaches often force trade off efficiency against usability. Traditional mesh coloring methods, while simple, frequently disrupt execution order and degrade data locality. In contrast, recursive partitioning preserves locality but typically relies on hand-crafted schemes that are complex, non-portable, and intrusive to production code. To bridge this gap, we propose Automatic Recursive Partitioning Tree (ARPT), a framework designed to automate conflict-free parallelization for unstructured-mesh Domain-Specific Languages (DSLs). The core of ARPT lies in its ability to reconcile performance with automation. On one hand, it constructs a recursive partition tree via mesh renumbering and isolator regions, ensuring conflict-free execution while maximizing spatial locality on many-core CPUs. On the other hand, to eliminate manual effort, ARPT leverages domain-specific abstract syntax trees (DS-ASTs) and a specialized transformation pipeline. This pipeline recovers mesh-level topology and analyzes per-loop access patterns to generate all necessary partitioning, reordering, and synchronization code. Experiments on the representative OP2 benchmark Airfoil on four multi-core CPU platforms show that ARPT reduces developer-visible conflict-handling code from 766 to 6 source lines (a 99.22% reduction) and achieves up to 1.80 × end-to-end speedup and up to 2.92 × kernel speedup over existing DSL conflict-handling backends in the main experiments. We further extend ARPT automatically to the complicated high-order Discontinuous Galerkin (DG) solver HOUR2D, where it delivers consistent positive speedups for conflict-prone face-to-cell kernels across four CPU platforms, further demonstrating the generality of ARPT.

ACM Transactions on Architecture and Code Optimization
National University of Defense Technology (CN), China Aerodynamics Research and Development Center (CN)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon