加速基于任务的迭代应用程序
Accelerating Task-based Iterative Applications
摘要:
作为传统fork-join并行的替代方案,基于任务的编程模型越来越受欢迎。它们更适合于编写具有不规则并行性的应用程序,这些并行性可能会导致负载不平衡。然而,这些编程模型受到与任务创建、调度和依赖性管理相关的开销的影响,当任务变得太小时,限制了性能和可扩展性。同时,许多HPC应用实现迭代法或多步模拟,其在每次迭代上创建相同的任务的有向非循环图。通过为应用程序员提供一种方式来表达特定循环在每次迭代中创建相同的任务模式,我们可以一次性创建单个任务DAG并将其转换为循环图。这个循环图然后被重复用于连续的迭代,最小化任务创建和依赖管理开销。本文介绍了taskiter,一个新的构造,我们提出的Ompss-2和OpenMP编程模型,允许使用有向循环任务图(DCTG),以尽量减少运行时开销。此外,我们提出了一个简单的直接后继本地感知启发式,最大限度地减少任务调度开销绕过运行时任务调度程序。我们评估的任务和直接后继启发式的实施8迭代基准。使用小的任务粒度,我们获得了3.7倍的平均加速比的参考OmpSs-2的实现和平均5倍和7.46倍的加速比的LLVM和GCC的OpenMP运行时,分别。
英文摘要:
Task-based programming models have risen in popularity as an alternative to traditional fork-join parallelism. They are better suited to write applications with irregular parallelism that can present load imbalance. However, these programming models suffer from overheads related to task creation, scheduling and dependency management, limiting performance and scalability when tasks become too small. At the same time, many HPC applications implement iterative methods or multi-step simulations that create the same directed acyclic graphs of tasks on each iteration. By giving application programmers a way to express that a specific loop is creating the same task pattern on each iteration, we can create a single task DAG once and transform it into a cyclic graph. This cyclic graph is then reused for successive iterations, minimizing task creation and dependency management overhead. This paper presents the taskiter, a new construct we propose for the OmpSs-2 and OpenMP programming models, allowing the use of directed cyclic task graphs (DCTG) to minimize runtime overheads. Moreover, we present a simple immediate successor locality-aware heuristic that minimizes task scheduling overhead by bypassing the runtime task scheduler. We evaluate the implementation of the taskiter and the immediate successor heuristic in 8 iterative benchmarks. Using small task granularities, we obtain an average speedup of 3.7x over the reference OmpSs-2 implementation and an average of 5x and 7.46x speedup over the LLVM and GCC OpenMP runtimes, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。