Automatic Kernel Generation for Volta Tensor Cores
Not on the map. Why?
Abstract (arXiv)
A commonly occurring computation idiom in neural networks is to perform some pointwise operations on the result of a matrix multiplication. Such a sequence of operations is typically represented as a computation graph in deep learning compilers. When compiling to a GPU target, these computations can be individually mapped to manually tuned implementations provided by libraries such as cuBLAS and cuDNN. These libraries also provide off-the-shelf support for targeting tensor cores in NVIDIA GPUs, which can lead to huge performance boosts through their specialized support for mixed-precision matrix math. Alternatively, tensor cores can be programmed directly using CUDA APIs or inline assembly instructions, which opens up the possibility of generating efficient CUDA kernels automatically for such computations. Automatic kernel generation is particularly crucial when it is beneficial to generate efficient code for an entire computation graph by fusing several operations into a single device function instead of invoking a separate kernel for each of them. Polyhedral compilation techniques provide a systematic approach for the analysis and transformation of a sequence of affine loop-nests. In this paper, we describe a polyhedral approach to generate efficient CUDA kernels for matrix multiplication using inline assembly instructions for programming tensor cores on NVIDIA Volta GPUs. Furthermore, we build on this approach to generate fused kernels for computation sequences involving matrix multiplication and pointwise operations such as bias addition, ReLU activation etc. Experimental evaluation of these techniques show that automatically generated kernels can provide significantly better performance than manually tuned library implementations, with speedups ranging up to 2.55X.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 1; 2025: 2; 2026: 1.
8 papers.
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 2021UNIT: Unifying Tensorized Instruction Compilationcited by 10
- 2024Optimizing the Deployment of Tiny Transformers on Low-Power MCUscited by 8
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUscited by 3
- 2022Learning from distinctive candidates to optimize reduced-precision convolution program on tensor corescited by 1
- 2025Striking the Right Balance between Compute and Copy: Improving LLM Inferencing Under Speculative Decodingcited by 0
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworkscited by 0
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworks6 Mar 2026
- 2025Striking the Right Balance between Compute and Copy: Improving LLM Inferencing Under Speculative Decoding15 Nov 2025
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUs9 Oct 2025
- 2024Optimizing the Deployment of Tiny Transformers on Low-Power MCUs3 Apr 2024
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimization9 Jul 2022
- 2022Learning from distinctive candidates to optimize reduced-precision convolution program on tensor cores11 Feb 2022
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Padding19 Oct 2021
- 2021UNIT: Unifying Tensorized Instruction Compilation21 Jan 2021