paper-with-me

홈 › Papers

TPU-MLIR: A Compiler For TPU Using MLIR

2022-10-23 · Pengchao Hu, Man Lu, Lei Wang, Guoyue Jiang

Multi-level intermediate representations (MLIR) show great promise for reducing the cost of building domain-specific compilers by providing a reusable and extensible compiler infrastructure. This work presents TPU-MLIR, an end-to-end compiler based on MLIR that deploys pre-trained neural network (NN) models to a custom ASIC called a Tensor Processing Unit (TPU). TPU-MLIR defines two new dialects to implement its functionality: 1. a Tensor operation (TOP) dialect that encodes the deep learning graph semantics and independent of the deep learning framework and 2. a TPU kernel dialect to provide a standard kernel computation on TPU. A NN model is translated to the TOP dialect and then lowered to the TPU dialect for different TPUs according to the chip's configuration. We demonstrate how to use the MLIR pass pipeline to organize and perform optimization on TPU to generate machine code. The paper also presents a verification procedure to ensure the correctness of each transform stage.

📄 PDF Abstract BibTeX arXiv:2210.15016

Code (1)

sophgo/tpu-mlir 공식 구현 pytorch

Similar Papers 제목 키워드 기반

MLIR: A Compiler Infrastructure for the End of Moore's Law

2020-02-25 · Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen 외

This work presents MLIR, a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the…

From Loop Nests to Silicon: Mapping AI Workloads onto AMD NPUs with MLIR-AIR

2025-10-16 · Erwei Wang, Samuel Bayliss, Andra Bisca, Zachary Blair 외 arxiv

General-purpose compilers abstract away parallelism, locality, and synchronization, limiting their effectiveness on modern spatial architectures. As modern computing architectures increasingly rely on fine-grained contro…

DSP-MLIR: A MLIR Dialect for Digital Signal Processing

2024-08-20 · Abhinav Kumar, Atharva Khedkar, Aviral Shrivastava

Traditional Digital Signal Processing ( DSP ) compilers work at low level ( C-level / assembly level ) and hence lose much of the optimization opportunities present at high-level ( domain-level ). The emerging multi-leve…

A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler

2024-09-17 · Nazim Bendib, Iheb Nassim Aouadj, Riyadh Baghdadi

Code optimization is a crucial task aimed at enhancing code performance. However, this process is often tedious and complex, highlighting the necessity for automatic code optimization techniques. Reinforcement Learning (…

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Compiling ONNX Neural Network Models Using MLIR

2020-08-19 · Tian Jin, Gheorghe-Teodor Bercea, Tung D. Le, Tong Chen 외

Deep neural network models are becoming increasingly popular and have been used in various tasks such as computer vision, speech recognition, and natural language processing. Machine learning models are commonly trained …

speech-recognitionSpeech Recognition