AUGEM
Qian Wang, Xianyi Zhang, Yunquan Zhang et al. · 2013
Basic Liner algebra subprograms (BLAS) is a fundamental library in scientific computing. In this paper, we present a template-based optimization framework, AUGEM, which can automatically generate fully optimized assembly code for several dense linear algebra (DLA) kernels, such as GEMM, GEMV, AXPY and DOT, on varying multi-core CPUs without requiring any manual interference from developers. In particular, based on domain-specific knowledge about algorithms of the DLA kernels, we use a collection of parameterized code templates to formulate a number of commonly occurring instruction sequences within the optimized low-level C code of these DLA kernels. Then, our framework uses a specialized low-level C optimizer to identify instruction sequences that match the pre-defined code templates and thereby translates them into extremely efficient SSE/AVX instructions. The DLA kernels generated by our template-based approach surpass the implementations of Intel MKL and AMD ACML BLAS libraries, on both Intel Sandy Bridge and AMD Piledriver processors.
Cited by 199 works. doi:10.1145/2503210.2503219
Authors
References
- Automated empirical optimizations of software and the ATLAS project
- Automatically Tuned Linear Algebra Software
- Optimizing matrix multiply using PHiPAC
- Optimizing matrix multiply using PHiPAC
- Anatomy of high-performance matrix multiplication
- High-performance implementation of the level-3 BLAS
- Model-driven Level 3 BLAS Performance Optimization on Loongson 3A Processor
- Engineering a Compiler
- Combining Models and Guided Empirical Search to Optimize for Multiple Levels of the Memory Hierarchy
- POET: Parameterized Optimizations for Empirical Tuning