Fireiron
Authors:
Open Access
- 30 September 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 71-82
Abstract
High GPU performance can only be achieved if a kernel efficiently uses the multi-layered compute and memory hierarchies. For example, accelerators such as NVIDIA ?s Tensor Cores require specific mappings of threads to data that must be considered in data movements to and from registers. Current compilers struggle to match the performance of vendor libraries like cu BLAS , which are developed by experts in assembly. This manual low-level coding is time-consuming and complicates to unlock the full GPU potential, preventing experimentation to achieve even higher performance. In this paper we introduce Fireiron, a scheduling language aimed at performance experts. Fireiron provides high-level abstractions for expressing GPU optimizations that are unavailable to compilers today and which so far must be written in assembly. Our innovation is that both computations and data movements are first class concepts that can be separately mapped to threads, as required for the efficient use of specialized hardware like Tensor Cores. We evaluate Fireiron on three GPU architectures against expert-written advanced matrix multiplications. First, we show that Fireiron schedules are able to express the strategies of these implementations requiring about 6× less lines of code. Second, we show that the code generated by Fireiron schedules outperforms the fastest implementations (provided by cu BLAS ) by more than 2×.Keywords
Funding Information
- CONIX Research Center, one of six centers in JUMP, a Semiconductor Research Corporation (SRC) program sponsored by DARPA (CMU 1042741-394324 AM01)
- Adobe
- NSF joint research center for Computer Assisted Programming for Heterogeneous Architectures (CCF-1723352)
- Defense Advanced Research Projects Agency (FA8750--14--C--0011, FA8750--16--2--0032)
- Qualcomm
- NSF (ACI OAC--1535191, FMitF CCF-1918027, OIA-1936731)
- Intel Corporation
This publication has 10 references indexed in Scilit:
- Learning to optimize halide with tree search and random programsACM Transactions on Graphics, 2019
- Swizzle Inventor2019
- Diesel: DSL for linear algebra and neural net computations on GPUs2018
- ATF: A generic directive‐based auto‐tuning frameworkConcurrency and Computation: Practice and Experience, 2018
- OpenTuner2014
- Spiral in scala2013
- Halide2013
- Polyhedral parallel code generation for CUDAACM Transactions on Architecture and Code Optimization, 2013
- Decoupling algorithms from schedules for easy optimization of image processing pipelinesACM Transactions on Graphics, 2012
- Parallel Programmability and the Chapel LanguageThe International Journal of High Performance Computing Applications, 2007