计算机科学 > 程序设计语言
[提交于 2026年11月28日]
标题:Named Commutative Blocks for Parallelization
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper proposes a new way to exploit code commutativity to parallelize sequential programs. While prior work provided the ability to identify and exploit commutative function calls or adjacent code blocks, this paper describes the first method that dynamically exploits statically-verified commutativity conditions of arbitrary code regions. In this method, programmers give parameterized names to code blocks anywhere in the program, and provide commutativity expressions over those parameters and the global state. Novel algorithms exploit this commutativity and dependence information to automatically construct a program-specific parallelization scheme, yielding asynchronous tasks executed through a commutativity-aware scheduler. We furthermore show that commutativity conditions can be verified automatically, reducing reliance on manual effort and increasing confidence in correctness. We implement our approach in a new compiler and runtime system called Veracity2G that takes in a sequential program and produces a parallel version that dynamically exploits the commutativity conditions. We experimentally demonstrate that Veracity2G (i) strictly generalizes prior commutativity-based parallelization techniques, (ii) enables parallelization opportunities beyond the reach of existing methods, and (iii) automatically verifies commutativity conditions.
提交历史
来自:Eric Koskinen[v1] 2026年11月28日 星期六 14:57:29 UTC (3,769 KB)