锯齿波前重排:增强的CuTile FlashAttention on NVIDIA GB10
Sawtooth Wavefront Reordering: Enhanced CuTile FlashAttention on NVIDIA GB10
AI总结:
本文提出锯齿波前重排技术,通过减少L2缓存缺失提升CuTile FlashAttention在NVIDIA GB10上的性能。
摘要:
高性能的注意力内核对于大语言模型至关重要。本文分析了基于CuTile的Flash Attention内存行为,并提出了一种提高其缓存性能的技术。特别是,我们对NVIDIA GB10(Grace Blackwell)的分析确定了L2缓存缺失的主要原因。利用这一见解,我们引入了一种新的编程技术,称为锯齿波前重排,以减少L2缺失。我们在CUDA和CuTile中验证了该技术,观察到L2缺失减少了50%或更多,且在GB10上吞吐量增加了60%。
英文摘要:
High-performance attention kernels are essential for Large Language Models. This paper presents analysis of CuTile-based Flash Attention memory behavior and a technique to improve its cache performance. In particular, our analysis on the NVIDIA GB10 (Grace Blackwell) identifies the main cause of L2 cache miss. Leveraging this insight, we introduce a new programming technique called Sawtooth Wavefront Reordering that reduces L2 misses. We validate it in both CUDA and CuTile, observing 50\% or greater reduction in L2 misses and up to 60\% increase in throughput on GB10.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。