Li, S., Zhao, J., Liu, Y. et al. (11 more authors) (2026) From Threads to Tiles: T2T, a Compiler for CUDA-to-NPU Translation via 2D Vectorization. In: 2026 IEEE/ACM International Symposium on Code Generation and Optimization (CGO). 2026 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), 31 Jan - 04 Feb 2026, Sydney, Australia. Institute of Electrical and Electronics Engineers (IEEE), pp. 362-374. ISBN: 979-8-3315-9289-9.
Abstract
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.
Metadata
| Item Type: | Proceedings Paper |
|---|---|
| Authors/Creators: |
|
| Copyright, Publisher and Additional Information: | © 2026 IEEE. This is an author produced version of a conference paper, published in 2026 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), and made available under the terms of the Creative Commons Attribution License (CC-BY), which permits unrestricted use, distribution and reproduction in any medium, provided the original work is properly cited. |
| Keywords: | MLIR, CUDA, auto-vectorization, heterogeneous computing, AI accelerators |
| Dates: |
|
| Institution: | The University of Leeds |
| Academic Units: | The University of Leeds > Faculty of Engineering & Physical Sciences (Leeds) > School of Computing (Leeds) > Distributed Systems & Services |
| Date Deposited: | 04 Aug 2026 15:55 |
| Last Modified: | 12 Oct 2026 12:03 |
| Published Version: | https://ieeexplore.ieee.org/document/11395190 |
| Status: | Published |
| Publisher: | Institute of Electrical and Electronics Engineers (IEEE) |
| Identification Number: | 10.1109/cgo68049.2026.11395190 |
| Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:244124 |
Download
Filename: CUDA_To_NPU-6.pdf
Licence: CC-BY 4.0

CORE (COnnecting REpositories)
CORE (COnnecting REpositories)