Communication Costs of Strassen's Matrix Multiplication

被引:10
作者
Ballard, Grey [1 ]
Demmel, James [2 ,3 ]
Holtz, Olga [2 ,4 ]
Schwartz, Oded [1 ]
机构
[1] Univ Calif Berkeley, Dept Elect Engn & Comp Sci, Berkeley, CA 94720 USA
[2] Univ Calif Berkeley, Dept Math, Berkeley, CA 94720 USA
[3] Univ Calif Berkeley, Div Comp Sci, Berkeley, CA 94720 USA
[4] Tech Univ Berlin, Inst Math, Berlin, Germany
基金
美国国家科学基金会; 欧洲研究理事会;
关键词
Cost benefit analysis;
D O I
10.1145/2556647.2556660
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Algorithms have historically been evaluated in terms of the number of arithmetic operations they performed. This analysis is no longer sufficient for predicting running times on today's machines. Moving data through memory hierarchies and among processors requires much more time (and energy) than performing computations. Hardware trends suggest that the relative costs of this communication will only increase. Proving lower bounds on the communication of algorithms and finding algorithms that attain these bounds are therefore fundamental goals. We show that the communication cost of an algorithm is closely related to the graph expansion properties of its corresponding computation graph. Matrix multiplication is one of the most fundamental problems in scientific computing and in parallel computing. Applying expansion analysis to Strassen's and other fast matrix multiplication algorithms, we obtain the first lower bounds on their communication costs. These bounds show that the current sequential algorithms are optimal but that previous parallel algorithms communicate more than necessary. Our new parallelization of Strassen's algorithm is communication-optimal and outperforms all previous matrix multiplication algorithms.
引用
收藏
页码:107 / 114
页数:8
相关论文
共 24 条
[1]   A three-dimensional approach to parallel matrix multiplication [J].
Agarwal, RC ;
Balle, SM ;
Gustavson, FG ;
Joshi, M ;
Palkar, P .
IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 1995, 39 (05) :575-582
[2]   An elementary construction of constant-degree expanders [J].
Alon, Noga ;
Schwartz, Oded ;
Shapira, Asaf .
COMBINATORICS PROBABILITY & COMPUTING, 2008, 17 (03) :319-327
[3]  
Anderson E., 1992, LAPACKS USERS GUIDE
[4]  
[Anonymous], 1981, P 13 ANN ACM S THEOR, DOI DOI 10.1145/800076.802486
[5]  
[Anonymous], P INT C HIGH PERF CO
[6]  
Ballard Grey, 2012, Design and Analysis of Algorithms. First Mediterranean Conference on Algorithms, MedAlg 2012. Proceedings, P13, DOI 10.1007/978-3-642-34862-4_2
[7]  
Ballard G., 2012, P 24 ACM S PAR ALG A, P193
[8]  
Ballard G., 2013, P 25 ACM S PAR ALG A
[9]  
Ballard G., 2012, Proceedings of the 24th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '12, P77, DOI DOI 10.1145/2312005.2312021
[10]   Graph Expansion and Communication Costs of Fast Matrix Multiplication [J].
Ballard, Grey ;
Demmel, James ;
Holtz, Olga ;
Schwartz, Oded .
JOURNAL OF THE ACM, 2012, 59 (06)