arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.12949cs.DC
收藏

FlashFuser: 通过芯间连接扩展计算密集型操作符的核融合规模

FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core Connection

Shanghai Jiao Tong University(上海交通大学);Shanghai Qi Zhi Institute(上海人工智能实验室);National University of Singapore(新加坡国立大学);Tsinghua University(清华大学)

Ziyu Huang, Yangjie Zhou, Zihan Liu, Xinhao Luo, Yijia Diao, Minyi Guo, Jidong Zhai, Yu Feng, Chen Zhang, Anbang Wu, Jingwen Leng

AI总结:

FlashFuser通过利用GPU芯间连接机制,扩展核融合规模,提升计算密集型操作的性能和效率。

摘要:

计算吞吐量的扩展继续超越内存带宽改进的速度,使得许多深度学习工作负载成为内存受限的。核融合是缓解这一问题的关键技术,但现有编译器和框架的融合策略仅限于使用本地暂存内存。当中间结果超过有限容量(如FFN)时,融合会失败。尽管现代GPU(如NVIDIA H100)现在集成了一个称为分布式共享内存(DSM)的芯间连接机制——提供更大的、高带宽的、低延迟的芯片内存池——但这一硬件潜力尚未被软件框架利用。为弥合这一差距,我们提出了FlashFuser,这是首个利用芯间连接进行现代GPU核融合的编译器框架。FlashFuser通过三个核心贡献将已建立的融合技术扩展到DSM领域。首先,我们提出了一种强大的基于DSM的通信抽象,正式化了基于集群的数据交换模式,如reduce、shuffle和multiply。其次,我们引入了一个数据流分析器,将循环调度、资源映射和瓷砖选择泛化到分布式内存层次结构中;它通过量化内存层次之间数据移动来确定最优的执行顺序和瓷砖大小。最后,FlashFuser将这些组件整合到一个统一的搜索引擎中,该引擎使用分析性成本建模和DSM-aware剪枝策略来高效地发现最优的执行计划。我们在NVIDIA H100 GPU上的评估显示,FlashFuser减少了58%的内存访问,并相对于高度调优的库提供了3.3倍的内核加速,相对于最先进的编译器提供了4.1倍的加速,从而实现了1.24倍的端到端加速。

英文摘要:

The scaling of computation throughput continues to outpace improvements in memory bandwidth, making many deep learning workloads memory-bound. Kernel fusion is a key technique to alleviate this problem, but the fusion strategies of existing compilers and frameworks are limited to using local scratchpad memory. When the intermediate results exceed the limited capacity (such as FFN), the fusion fails. Although modern GPUs (like the NVIDIA H100) now incorporate an inter-core connection mechanism known as Distributed Shared Memory(DSM)--providing a larger, high-bandwidth, and low-latency on-chip memory pool--this hardware potential has yet to be exploited by software frameworks. To bridge this gap, we present FlashFuser, the first compiler framework to utilize inter-core connection for kernel fusion on modern GPUs. FlashFuser extends established fusion techniques to the DSM domain through three core contributions. First, we propose a powerful DSM-based communication abstraction that formalizes complex cluster-based data exchange patterns, such as reduce, shuffle and multiply. Second, we introduce a dataflow analyzer that generalizes loop scheduling, resource mapping, and tile selection to the distributed memory hierarchy; it determines the optimal execution order and tile sizes by quantifying data movement across memory levels. Finally, FlashFuser integrates these components into a unified search engine that employs analytical cost modeling and DSM-aware pruning strategies to efficiently discover the optimal execution plan. Our evaluation on an NVIDIA H100 GPU shows that FlashFuser reduces memory access by 58% and delivers kernel speedups of 3.3x against highly-tuned libraries and 4.1x against state-of-the-art compilers, resulting in a 1.24x end-to-end speedup.

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

↑