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

面向并发的全局优化与轻量级动态逻辑

Global Optimizations & Lightweight Dynamic Logic for Concurrency

Suchita Pati, Shaizeen Aga, Nuwan Jayasena, Matthew D. Sinclair

AI总结:

本文提出 GOLDYLOC,通过全局资源感知的 GO-Kernel 和轻量级动态逻辑优化 GPU 上并发 GEMM 的执行,最高实现 2.5 倍加速。

摘要:

现代加速器(如 GPU)越来越多地并发执行相互独立的操作,以提高设备的计算利用率。然而,在 GPU 上有效利用这种并发能力来执行诸如通用矩阵乘法(GEMM)等重要原语仍然具有挑战性。尽管现代 GPU 在硬件和软件上对 GEMM 提供了大量支持,但其内核实现和优化通常假设每个内核独立执行,并且可以使用全部 GPU 资源。当内核独立执行时,这种方法非常高效;但当内核并发执行时,会导致显著的资源争用和性能下降。此外,当前方法通常只静态地暴露和控制应用程序内部的并行性,而没有考虑运行时信息,例如变化的输入规模和并发应用程序——这往往会加剧资源争用。这些问题限制了并发执行独立操作所带来的性能收益。为此,我们提出了 GOLDYLOC,该方法考虑所有并发操作之间的全局资源,以识别高性能 GEMM 内核,我们将其称为全局优化(GO)内核。此外,GOLDYLOC 引入了一种轻量级动态逻辑,该逻辑考虑动态执行环境中的可用并行性和输入规模,从而在 GPU 上执行高性能的并发 GEMM 组合。总体而言,GOLDYLOC 在真实 GPU 上将并发 GEMM 的性能最高提升 2 倍(每个工作负载的几何平均提升为 18%),并且相对于顺序执行最高提供 2.5 倍加速(每个工作负载的几何平均加速为 43%)。

英文摘要:

Modern accelerators like GPUs are increasingly executing independent operations concurrently to improve the device's compute utilization. However, effectively harnessing it on GPUs for important primitives such as general matrix multiplications (GEMMs) remains challenging. Although modern GPUs have significant hardware and software support for GEMMs, their kernel implementations and optimizations typically assume each kernel executes in isolation and can utilize all GPU resources. This approach is highly efficient when kernels execute in isolation, but causes significant resource contention and slowdowns when kernels execute concurrently. Moreover, current approaches often only statically expose and control parallelism within an application, without considering runtime information such as varying input size and concurrent applications -- often exacerbating contention. These issues limit performance benefits from concurrently executing independent operations. Accordingly, we propose GOLDYLOC, which considers the global resources across all concurrent operations to identify performant GEMM kernels, which we call globally optimized (GO)-Kernels. Moreover, GOLDYLOC introduces a lightweight dynamic logic which considers the dynamic execution environment for available parallelism and input sizes to execute performant combinations of concurrent GEMMs on the GPU. Overall, GOLDYLOC improves performance of concurrent GEMMs on a real GPU by up to 2$\times$ (18% geomean per workload) and provides up to 2.5$\times$ (43% geomean per workload) speedups over sequential execution.

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

↑