arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2302.05506cs.DC
收藏

用taskloop评估推测DOACROSS循环并行化的性能

Evaluating the Performance of Speculative DOACROSS Loop Parallelization with taskloop

Juan Salamanca, Alexandro Baldassin

摘要:

OpenMP为程序员提供了并行化DOALL循环的指令,例如parallel for和最近的taskloop,用于基于任务的并行化。另一方面,当可以证明循环是DOACROSS时,程序员可以尝试通过parallel for将其并行化,并使用OpenMP命令指令来标记必须顺序执行的循环区域。然而,当前两种情况都不能被证明时,程序员必须保守地假设循环是DOACROSS(实际上可能是DOACROSS)。以前的工作提出了推测性的支持taskloop(TLS子句),从而有可能并行化可能DOACROSS循环利用基于任务的并行性和事实,其中许多是计算密集型和DOALL在运行时。本文提出了投机任务执行(STE),通过增加投机私有化的taskloop tls两个新的条款:spec_private和spec_reduction。我们还提出了taskloop-tls与投机私有化与有序的性能比较,揭示了,对于某些循环,使用OpenMP DOACROSS的减速可以通过应用任务的投机并行化转换为高达1.87倍的加速。

英文摘要:

OpenMP provides programmers with directives to parallelize DOALL loops such as parallel for and, more recently, taskloop for task-based parallelism. On the other hand, when it is possible to prove that a loop is DOACROSS, programmers can try to parallelize it through parallel for and to use the OpenMP ordered directive to mark the region of the loop that has to be executed sequentially. However, when neither of the previous two cases can be proven, programmers have to be conservative and assume that the loop is DOACROSS (actually may DOACROSS). Previous work proposed speculative support for taskloop (tls clause) and thus made it possible to parallelize may DOACROSS loops exploiting task-based parallelism and the fact that many of them are computationally intensive and DOALL at runtime. This paper proposes Speculative Task Execution (STE) through the addition of speculative privatizations to taskloop tls with two novel clauses: spec_private and spec_reduction. We also present a performance comparison between taskloop-tls with speculative privatizations vs. ordered that reveals that, for certain loops, slowdowns using OpenMP DOACROSS can be transformed in speed-ups of up to 1.87x by applying speculative parallelization of tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑