arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14719cs.LGcs.ARcs.PL
收藏

Tawa: 为现代GPU自动实现扭曲专精与异步引用

Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous References

Cornell University(康奈尔大学);NVIDIA(英伟达)

Hongzheng Chen, Bin Fan, Alexander Collins, Bastian Hagedorn, Evghenii Gaburov, Masahiro Masuda, Matthew Brookhart, Chris Sullivan, Jason Knight, Zhiru Zhang, Vinod Grover

AI总结:

Tawa通过自动编译器实现GPU扭曲专精,利用异步引用抽象,提升LLM内核性能1.1-1.2倍,减少编程努力。

摘要:

现代GPU具备专用硬件单元,能够实现高性能的异步数据流执行。然而,传统的SIMT编程模型本质上与这种任务并行硬件不匹配,导致显著的可编程性差距。尽管硬件层面的扭曲专精是解锁峰值性能的关键,但它迫使开发人员手动编排复杂的低级通信和软件管道——这一过程既耗时又易出错且不可持续。为了解决这一挑战,我们提出了Tawa,一个自动编译器,能够系统地从高阶、基于瓷砖的程序生成高性能的扭曲专精代码。我们的方法核心是一种新的中间表示抽象,即异步引用(aref),它能够在不暴露低级硬件细节的情况下表达扭曲级通信。使用这种抽象,Tawa自动将程序划分为生产者-消费者角色,并管理复杂的数据流管道,使开发人员免于侵入性内核重写。在NVIDIA H100 GPU上对代表性LLM内核的评估显示,Tawa实现了高硬件利用率,比高度优化的cuBLAS GEMM内核快1.1倍。对于注意力工作负载,Tawa在Triton上实现了1.2倍的加速,并且在远少的编程努力下,与手工优化的CUTLASS C++ FlashAttention-3内核性能相当。

英文摘要:

Modern GPUs feature specialized hardware units that enable high-performance, asynchronous dataflow execution. However, the conventional SIMT programming model is fundamentally misaligned with this task-parallel hardware, creating a significant programmability gap. While hardware-level warp specialization is the key to unlocking peak performance, it forces developers to manually orchestrate complex, low-level communication and software pipelines--a process that is labor-intensive, error-prone, and unsustainable. To address this challenge, we present Tawa, an automated compiler that systematically generates high-performance, warp-specialized code from a high-level, tile-based program. Central to our approach is a novel IR abstraction, asynchronous references (aref), which expresses warp-level communication without exposing low-level hardware details. Using this abstraction, Tawa automatically partitions programs into producer-consumer roles and manages the intricate dataflow pipeline, relieving developers of invasive kernel rewriting. Evaluation on NVIDIA H100 GPUs across representative LLM kernels shows that Tawa delivers high hardware utilization, achieving up to 1.1$\times$ speedup over highly optimized cuBLAS GEMM kernels. For attention workloads, Tawa attains 1.2$\times$ speedup over Triton and matches the performance of the hand-optimized CUTLASS C++ FlashAttention-3 kernel with far less programming effort.

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

↑