Exécution de notre outil de synthèse sur un nouvel article

Vérifiez l’article ci-dessous, puis lancez sa synthèse.


From Threads to Tiles: T2T, a Compiler for CUDA-to-NPU Translation via 2D Vectorization

Shuaijiang Li (Institute of Computing Technology, University of Chinese Academy of Sciences), Jiacheng Zhao (Institute of Computing Technology, University of Chinese Academy of Sciences), Ying Liu (Institute of Computing Technology, University of Chinese Academy of Sciences), Shuoming Zhang (Institute of Computing Technology, University of Chinese Academy of Sciences), Lei Chen (University of Chinese Academy of Sciences), Yijin Li (Institute of Computing Technology), Yangyu Zhang (Institute of Computing Technology, University of Chinese Academy of Sciences), Zhicheng Li (Institute of Computing Technology, University of Chinese Academy of Sciences), Runyu Zhou (Institute of Computing Technology, University of Chinese Academy of Sciences), Xiyu Shi (Institute of Computing Technology), Chunwei Xia (University of Leeds), Yuan Wen (University of Aberdeen), Xiaobing Feng (Institute of Computing Technology, University of Chinese Academy of Sciences), Huimin Cui (Chinese Academy of Sciences, Institute of Computing Technology)

Proceedings of the CGO/Proceedings of the ... CGO
Licence : CC BY

Résumé : CUDA’s programming model, exposing massive parallelism via fine-grained scalar threads, has become the de facto standard for GPU computing. Concurrently, NPUs are emerging as highly efficient accelerators, but their architecture is fundamentally different, relying on coarse-grained, explicit 2-D tile-based instructions. This creates a critical challenge: bridging the semantic gap "From Threads to Tiles". A direct translation is infeasible, as it requires lifting the implicit parallelism of CUDA’s scalar model into the explicit, multi-dimensional vector space of NPUs, a problem we formalize as a lifting challenge. This paper introduces T2T, a compiler framework that automates this "Threads to Tiles" translation via the 2-D Vectorization technique. T2T first transforms a CUDA kernel’s implicit SIMT parallelism into a structured, explicit loop nest via our Unified Parallelism Abstraction (UPA), making the parallelism analyzable. From this representation, T2T’s core vectorization engine systematically selects optimal pairs of loops and maps them onto the NPU’s 2-D tile instructions to maximize hardware utilization. To ensure correctness and handle performance-critical CUDA features, a final set of semantics-preserving optimizations is applied, including efficient control-flow management and vectorization of warp-level intrinsics. We implement T2T based on Polygeist and evaluate representative NPU architectures. On a diverse set of benchmarks, kernels translated by T2T achieve up to 73% of native CUDA performance on an A100 GPU and outperform baseline translation approaches by up to 6.9×. Our work demonstrates that a systematic, compiler-driven approach to 2-D vectorization is a principled and high-performance path for porting the rich CUDA ecosystem to the evolving landscape of NPU accelerators.

Publié le 31 Jan. 2026