Implementing Strassen's Algorithm with BLIS
Jianyu Huang, Tyler Smith, Greg Henry et al. · arXiv (Cornell University) · 2016
We dispel with "street wisdom" regarding the practical implementation of Strassen's algorithm for matrix-matrix multiplication (DGEMM). Conventional wisdom: it is only practical for very large matrices. Our implementation is practical for small matrices. Conventional wisdom: the matrices being multiplied should be relatively square. Our implementation is practical for rank-k updates, where k is relatively small (a shape of importance for libraries like LAPACK). Conventional wisdom: it inherently requires substantial workspace. Our implementation requires no workspace beyond buffers already incorporated into conventional high-performance DGEMM implementations. Conventional wisdom: a Strassen DGEMM interface must pass in workspace. Our implementation requires no such workspace and can be plug-compatible with the standard DGEMM interface. Conventional wisdom: it is hard to demonstrate speedup on multi-core architectures. Our implementation demonstrates speedup over conventional DGEMM even on an Intel(R) Xeon Phi(TM) coprocessor utilizing 240 threads. We show how a distributed memory matrix-matrix multiplication also benefits from these advances.
Cited by 6 works. doi:10.48550/arxiv.1605.01078 Open-access PDF
Authors
References
- Gaussian elimination is not optimal
- A set of level 3 basic linear algebra subprograms
- Partial and Total Matrix Multiplication
- Anatomy of high-performance matrix multiplication
- ScaLAPACK: a scalable linear algebra library for distributed memory concurrent computers
- Implementation of Strassen's algorithm for matrix multiplication
- Anatomy of High-Performance Many-Threaded Matrix Multiplication
- The bilinear complexity and practical algorithms for matrix multiplication
- Fast matrix multiplication is stable
- Communication-avoiding parallel strassen: implementation and performance