Communication-Optimal Parallel Recursive Rectangular Matrix Multiplication
James Weldon Demmel, David Eliahu, Armando Fox et al. · Proceedings - IEEE International Parallel and Distributed Processing Symposium · 2013
Abstract—Communication-optimal algorithms are known for square matrix multiplication. Here, we obtain the first communication-optimal algorithm for all dimensions of rectangular matrices. Combining the dimension-splitting technique of Frigo, Leiserson, Prokop and Ramachandran (1999) with the recursive BFS/DFS approach of Ballard, Demmel, Holtz, Lipshitz and Schwartz (2012) allows for a communication-optimal as well as cache- and network-oblivious algorithm. Moreover, the implementation is simple: approximately 50 lines of code for the shared-memory version. Since the new algorithm minimizes communication across the network, between NUMA domains, and between levels of cache, it performs well in practice on both shared- and distributed-memory machines. We show significant speedups over existing parallel linear algebra libraries both on a 32-core shared-memory machine and on a distributed-memory supercomputer. Index Terms—communication-avoiding algorithms; linear algebra; matrix multiplication I.
Cited by 112 works. doi:10.1109/ipdps.2013.80
Authors
References
- Gaussian elimination is not optimal
- I/O complexity
- Algebraic Complexity Theory
- On Minimizing the Number of Multiplications Necessary for Matrix Multiplication
- A Portable Programming Interface for Performance Evaluation on Modern Processors
- Cache-oblivious algorithms
- Gaussian Elimination is not Optimal
- O(n2.7799) complexity for n × n approximate matrix multiplication
- An inequality related to the isoperimetric inequality
- SUMMA: scalable universal matrix multiplication algorithm