使用进程演算优化复杂有状态并行计算中的数据与计算共享
Using Process Calculus for Optimizing Data and Computation Sharing in Complex Stateful Parallel Computations
AI总结:
针对复杂有状态并行计算(如智能体模拟),提出基于π-演算的行为方程形式化方法及OptiFusion系统,通过合并程序等优化使性能较现有系统快10倍以上、超手动优化2倍。
摘要:
我们提出了利用数据和计算共享来提升复杂有状态并行计算(如基于智能体的模拟)性能的新技术。并行计算被转换为行为方程——一种基于基础进程演算π-演算的新型形式化方法。行为方程融合代码与数据,使系统能轻松组合并行程序并将其转换为专用程序。我们展示了合并程序、合成高效消息数据结构、消除本地消息传递、将通信指令重写为本地计算以及聚合下推等优化如何通过行为方程的转换来表达。我们还构建了名为OptiFusion的系统,实现了行为方程及上述优化。实验表明,在复杂有状态工作负载基准测试中,OptiFusion比最先进的有状态系统快10倍以上;生成手动编写不切实际的专用指令,甚至比手动优化实现快2倍。
英文摘要:
We propose novel techniques that exploit data and computation sharing to improve the performance of complex stateful parallel computations, like agent-based simulations. Parallel computations are translated into behavioral equations, a novel formalism layered on top of the foundational process calculus $π$-calculus. Behavioral equations blend code and data, allowing a system to easily compose and transform parallel programs into specialized programs. We show how optimizations like merging programs, synthesizing efficient message data structures, eliminating local messaging, rewriting communication instructions into local computations, and {aggregation pushdown} can be expressed as transformations of behavioral equations. We have also built a system called OptiFusion that implements behavioral equations and the aforementioned optimizations. Our experiments showed that OptiFusion is over 10$\times$ faster than state-of-the-art stateful systems benchmarked via complex stateful workloads. Generating specialized instructions that are impractical to write by hand allows OptiFusion to outperform even the hand-optimized implementations by up to 2$\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。