2019 · 59 citations · 7 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureHardware-software Co-designAccelerator ArchitectureAccelerator IntegrationCompiler ConstructionHardware AccelerationIntermediate RepresentationAccelerator MicroarchitectureCompiler DesignCompiler SupportDeep Learning AcceleratorsMemory-aware Compiler OptimizationMicroarchitectural OptimizationRetargetable Code GenerationSoftware-to-hardware Compilation
This paper presents ONNC (Open Neural Network Compiler), a retargetable compilation framework designed to connect ONNX (Open Neural Network Exchange) models to proprietary deep learning accelerators (DLAs). The intermediate representations (IRs) of ONNC have one-to-one mapping to ONNX IRs, thus making porting ONNC to proprietary DLAs much simpler than other compilation frameworks such as TVM and Glow especially for hardware with coarse-grained operators that are not part of the generic IRs in the LLVM backend. ONNC also has a flexible pass manager designed to support compiler optimizations at all levels. A docker image of ONNC bundled with a Vanilla backend is released with this paper to enable fast porting to new hardware targets. To illustrate how an ONNC-based toolkit guides our research and development in DLA design, we present a case study on compiler optimizations for activation memory consumption. The study shows that the Best-Fit algorithm with a proposed heuristic and a reordering scheme may act as a near-optimal strategy, getting the memory consumption close to the ideal lower bound in 11 of 12 models from the ONNX model zoo. To our best knowledge, ONNC is the first open source compilation framework that is specially designed to support the ONNX-based models for both commercial and research projects for deep learning applications.
7
In-Datacenter Performance Analysis of a Tensor Processing Unit
Norman P. Jouppi, Cliff Young, Nishant Patil et al. · 2017 · 4.4K citations
Register allocation & spilling via graph coloring
Gregory J. Chaitin · ACM SIGPLAN Notices · 1982 · 767 citations · Full text
Register allocation & spilling via graph coloring
Gregory J. Chaitin · 1982 · 668 citations
Glow: Graph Lowering Compiler Techniques for Neural Networks
Nadav Rotem, Jordan Fix, Saleem Abdulrasool et al. · arXiv (Cornell University) · 2018 · 186 citations · Full text
TVM: End-to-End Optimization Stack for Deep Learning
Tianqi Chen, Thierry Moreau, Ziheng Jiang et al. · arXiv (Cornell University) · 2018 · 118 citations · Full text