Syncopate: 通过自动分块为中心的计算通信重叠实现高效的多GPU AI内核
Syncopate: Efficient Multi-GPU AI Kernels via Automatic Chunk-Centric Compute-Communication Overlap
AI总结:
Syncopate通过在单个融合内核内实现细粒度的计算通信重叠,提高了多GPU工作负载的效率,平均加速1.3倍,最高达4.7倍。
摘要:
在大规模GPU工作负载中,通信已成为首要瓶颈,现有分布式编译器主要通过流级别重叠整个计算和通信内核来解决。这种粗粒度方法导致额外的内核启动,强制内核边界处的设备级同步,并在最慢的tile或内核拉长通信尾部时留下大量空隙。我们提出了Syncopate,一种编译器和运行时,能够在单个融合内核内实现自动细粒度重叠。Syncopate引入了通信块抽象,将通信粒度与内核结构和后端机制解耦,允许块级计划从现有分布式编译器移植,直接由用户编写,或从可重用的模板实例化。给定一个本地Triton内核和一个块计划,Syncopate执行转换以对齐计算与块可用性。作为Triton上的源到源编译器实现,Syncopate在多GPU工作负载上实现了平均端到端加速1.3倍,最高达4.7倍。
英文摘要:
Communication has become a first-order bottleneck in large-scale GPU workloads, and existing distributed compilers address it mainly by overlapping whole compute and communication kernels at the stream level. This coarse granularity incurs extra kernel launches, forces device-wide synchronizations at kernel boundaries, and leaves substantial slack when the slowest tile or kernel stretches the communication tail. We present Syncopate, a compiler and runtime that enables automatic fine-grained overlap inside a single fused kernel. Syncopate introduces a communication chunk abstraction that decouples communication granularity from kernel structure and backend mechanisms, allowing chunk-level plans to be ported from existing distributed compilers, written directly by users, or instantiated from reusable templates. Given a local Triton kernel and a chunk schedule, Syncopate performs transformations to align computation with chunk availability. Implemented as a source-to-source compiler on Triton, Syncopate delivers an average end-to-end speedup of 1.3$\times$ and up to 4.7$\times$ on multi-GPU workloads. Our code is open-sourced at https://github.com/tie-pilot-qxw/syncopate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。