ACS:在不规则、依赖输入的计算图上并发执行内核
ACS: Concurrent Kernel Execution on Irregular, Input-Dependent Computational Graphs
AI总结:
针对深度强化学习仿真和动态 DNN 中不规则、输入依赖计算图导致的 GPU 利用率不足,提出 ACS 运行时依赖检测与低开销内核调度框架,最高实现 2.19 倍加速。
摘要:
GPU 如今被广泛用于加速许多重要类别的工作负载。然而,我们观察到若干重要的新兴工作负载类别,包括深度强化学习的仿真引擎和动态神经网络,无法充分利用 GPU 所提供的大规模并行性。这些应用的内核往往规模较小,即只有很少的线程块,无法使计算资源饱和。并发执行相互独立的内核是提升并行性和利用率的一种有前景的方法。但是,在现有方法下,这类工作负载很难利用这种内核间并发性:首先,内核间依赖关系和计算图依赖于输入,并且每次应用执行时都会变化。其次,计算图往往不规则,需要细粒度调度和同步;因此,如果并行化内核执行,就会产生显著的同步开销。在本文中,我们提出 ACS,这是一个能够在运行时轻量级检测内核间依赖并以低开销进行内核调度的框架。ACS 背后的关键思想是在运行时对一个较小窗口内的内核执行内核间依赖检查,类似于乱序指令调度。这使得计算图依赖输入且需要细粒度调度的应用能够并发执行内核。我们提出 ACS-SW(ACS 的纯软件开源实现)和 ACS-HW(一种硬件-软件协同实现)。ACS-HW 通过减少 CPU 与 GPU 之间的通信进一步降低同步开销。我们在真实硬件和 GPU 仿真器上针对深度 RL 仿真和动态 DNN 评估了 ACS。结果表明,通过利用并发内核执行提高 GPU 利用率,可实现最高 2.19 倍的加速(平均为 1.56 倍)。
英文摘要:
GPUs are widely used to accelerate many important classes of workloads today. However, we observe that several important emerging classes of workloads, including simulation engines for deep reinforcement learning and dynamic neural networks, are unable to fully utilize the massive parallelism that GPUs offer. These applications tend to have kernels that are small in size, i.e., have few thread blocks that do not saturate compute resources. Executing independent kernels concurrently is a promising approach to improve parallelism and utilization. However, this inter-kernel concurrency is difficult to leverage in such workloads with existing approaches: First, the inter-kernel dependencies and computational graph are input-dependent and vary each time the application is executed. Second, the computational graphs tend to be irregular, requiring fine-grain scheduling and synchronization; thus incurring significant synchronization overheads if kernel execution is parallelized. In this work, we propose ACS, a framework that enables lightweight detection of inter-kernel dependencies and low overhead kernel scheduling at runtime. The key idea behind ACS is to perform inter-kernel dependency checks for a small window of kernels at runtime, similar to out-of order instruction scheduling. This enables concurrent execution of kernels in applications whose computational graphs are input dependent and require fine-grained scheduling. We propose ACS-SW, a software-only open-source implementation of ACS and ACS-HW, a hardware-software cooperative implementation. ACS-HW further reduces synchronization overheads by reducing communication between the CPU and GPU. We evaluate ACS for deep RL simulation and dynamic DNNs on both real hardware and a GPU simulator. We demonstrate speedups of up to 2.19x (1.56x on average) by improving GPU utilization with concurrent kernel execution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。