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

Axe:一种简单的统一布局抽象用于机器学习编译器

TIRx: A Unified Tile Primitive ML Compiler Across Heterogeneous Backends

Bohan Hou, Hongyi Jin, Guanjie Wang, Shushi Hong, Jinqi Chen, Yaxing Cai, Lijie Yang, Zihao Ye, Yaoyao Ding, Ruihang Lai, Todd Mowry, Tianqi Chen

AI总结:

Axe提出了一种统一的布局抽象,通过多轴物理空间映射逻辑张量坐标,实现跨设备分布和设备内布局的一致表达,并结合多粒度DSL和编译器提升性能。

摘要:

随着现代深度学习工作负载的扩展,需要在设备网格、内存层次结构和异构加速器之间协调数据和计算的放置。我们提出了Axe Layout,一种面向硬件的抽象,通过命名轴将逻辑张量坐标映射到多轴物理空间。Axe在跨设备分布和设备内布局之间统一了分块、分片、复制和偏移,使集体原语能够从设备网格到线程一致地表达。基于Axe,我们设计了一种多粒度、分布感知的DSL和编译器,它在单个内核中将线程局部控制与集体运算符组合在一起。实验表明,我们的统一方法能够在最新的GPU设备和多设备环境以及加速器后端上将性能接近手工调优的内核。

英文摘要:

Modern ML kernels evolve rapidly with new optimizations and hardware features. ML compiler abstractions must accommodate richer memory hierarchies, more forms of thread cooperation, and increasingly heterogeneous backends while retaining the control required for peak performance. We present TIRx, an ML compiler for GPUs and AI accelerators that exposes these ingredients through explicit interfaces. TIRx introduces an explicit execution-scope abstraction that captures participating hardware teams at multiple granularities. It also uses tensor layouts to map logical tensors to heterogeneous hardware spaces through named axes and shard/replica/offset semantics. Finally, it introduces tile-primitive dispatch, which lowers high-level operations to efficient implementations according to scope, layout, and backend. This design preserves native-level control while automating recurring address calculation, operand preparation, and instruction-loop generation. Our evaluation shows vendor-level performance across the latest GPUs and AI accelerators, while native-code case studies show substantial reductions in low-level implementation code.

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

↑