Graph Expansion and Communication Costs of Fast Matrix Multiplication

被引:45
作者
Ballard, Grey [1 ]
Demmel, James [1 ]
Holtz, Olga
Schwartz, Oded
机构
[1] Univ Calif Berkeley, Berkeley, CA 94720 USA
基金
美国国家科学基金会;
关键词
Algorithms; Design; Performance; Communication-avoiding algorithms; fast matrix multiplication; I/O-complexity; OPTIMAL PARALLEL; LINEAR-ALGEBRA; COMPLEXITY; ALGORITHMS; LOCALITY; BOUNDS; QR;
D O I
10.1145/2395116.2395121
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The communication cost of algorithms (also known as I/O-complexity) is shown to be closely related to the expansion properties of the corresponding computation graphs. We demonstrate this on Strassen's and other fast matrix multiplication algorithms, and obtain the first lower bounds on their communication costs. In the sequential case, where the processor has a fast memory of size M, too small to store three n-by-n matrices, the lower bound on the number of words moved between fast and slow memory is, for a large class of matrix multiplication algorithms, Omega((n/root M)(omega 0) . M), where omega(0) is the exponent in the arithmetic count (e.g., omega(0) = lg 7 for Strassen, and omega(0) = 3 for conventional matrix multiplication). With p parallel processors, each with fast memory of size M, the lower bound is asymptotically lower by a factor of p. These bounds are attainable both for sequential and for parallel algorithms and hence optimal.
引用
收藏
页数:23
相关论文
共 74 条
[1]   THE INPUT OUTPUT COMPLEXITY OF SORTING AND RELATED PROBLEMS [J].
AGGARWAL, A ;
VITTER, JS .
COMMUNICATIONS OF THE ACM, 1988, 31 (09) :1116-1127
[2]   COMMUNICATION COMPLEXITY OF PRAMS [J].
AGGARWAL, A ;
CHANDRA, AK ;
SNIR, M .
THEORETICAL COMPUTER SCIENCE, 1990, 71 (01) :3-28
[3]  
Ahmed N, 2000, LECT NOTES COMPUT SC, V1900, P368
[4]   An elementary construction of constant-degree expanders [J].
Alon, Noga ;
Schwartz, Oded ;
Shapira, Asaf .
COMBINATORICS PROBABILITY & COMPUTING, 2008, 17 (03) :319-327
[5]  
Anderson E., 1992, LAPACKS USERS GUIDE
[6]  
[Anonymous], GRUNDLEHREN DER MATH
[7]  
[Anonymous], EXPANDERS MADE ELEME
[8]  
[Anonymous], GETTING UP TO SPEED
[9]  
[Anonymous], 1981, P 13 ANN ACM S THEOR, DOI DOI 10.1145/800076.802486
[10]  
[Anonymous], 2002, Journal of Mathematical Sciences, DOI DOI 10.1023/A:1013588221172