Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2612669.2612671acmconferencesArticle/Chapter ViewAbstractPublication PagesspaaConference Proceedingsconference-collections
research-article

Tradeoffs between synchronization, communication, and computation in parallel linear algebra computations

Published: 21 June 2014 Publication History

Abstract

This paper derives tradeoffs between three basic costs of a parallel algorithm: synchronization, data movement, and computational cost. These tradeoffs are lower bounds on the execution time of the algorithm which are independent of the number of processors, but dependent on the problem size. Therefore, they provide lower bounds on the parallel execution time of any algorithm computed by a system composed of any number of homogeneous components, each with associated computational, communication, and synchronization payloads. We employ a theoretical model counts the amount of work and data movement as a maximum of any execution path during the parallel computation. By considering this metric, rather than the total communication volume over the whole machine, we obtain new insights into the characteristics of parallel schedules for algorithms with non-trivial dependency structures. We also present reductions from BSP and LogP algorithms to our execution model, extending our lower bounds to these two models of parallel computation. We first develop our results for general dependency graphs and hypergraphs based on their expansion properties, then we apply the theorem to a number of specific algorithms in numerical linear algebra, namely triangular substitution, Gaussian elimination, and Krylov subspace methods. Our lower bound for LU factorization demonstrates the optimality of Tiskin's LU algorithm answering an open question posed in his paper, as well as of the 2.5D LU algorithm which has analogous costs. We treat the computations in a general manner by noting that the computations share a similar dependency hypergraph structure and analyzing the communication requirements of lattice hypergraph structures.

References

[1]
A. Aggarwal, A.K. Chandra, and M. Snir. Communication complexity of PRAMs. Theoretical Computer Science, 71(1):3--28, 1990.
[2]
G. Ballard, J. Demmel, O. Holtz, B. Lipshitz, and O. Schwartz. Strong scaling of matrix multiplication algorithms and memory-independent communication lower bounds. In ACM Symposium on Parallelism in Algorithms and Architectures (SPAA), June 2012.
[3]
G. Ballard, J. Demmel, O. Holtz, and O. Schwartz. Minimizing communication in linear algebra. SIAM J. Mat. Anal. Appl., 32(3), 2011.
[4]
E. Bampis, C. Delorme, and J.-C. König. Optimal schedules for d-D grid graphs with communication delays. In STACS 96, volume 1046 of Lecture Notes in Computer Science, pages 655--666. Springer Berlin Heidelberg, 1996.
[5]
M. A. Bender, G. S. Brodal, R. Fagerberg, R. Jacob, and E. Vicari. Optimal sparse matrix dense vector multiplication in the I/O-model. Theory of Computing Systems, 47(4):934--962, 2010.
[6]
G. Bilardi and F. P. Preparata. Processor-time tradeoffs under bounded-speed message propagation: Part II, lower bounds. Theory of Computing Systems, 32(5):531--559, 1999.
[7]
L. S. Blackford, J. Choi, A. Cleary, E. D'Azeuedo, J. Demmel, I. Dhillon, S. Hammarling, G. Henry, A. Petitet, K. Stanley, D. Walker, and R. C. Whaley. ScaLAPACK user's guide. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 1997.
[8]
D. Culler, R. Karp, D. Patterson, A. Sahay, K. E. Schauser, E. Santos, R. Subramonian, and T. von Eicken. LogP: towards a realistic model of parallel computation. In Proceedings of the fourth ACM SIGPLAN symposium on Principles and practice of parallel programming, PPOPP'93, pages 1--12, New York, NY, USA, 1993. ACM.
[9]
J. Demmel, L. Grigori, and H. Xiang. A Communication Optimal LU Factorization Algorithm. EECS Technical Report EECS-2010-29, UC Berkeley, March 2010.
[10]
J. Demmel, M. Hoemmen, M. Mohiyuddin, and K. Yelick. Avoiding communication in computing Krylov subspaces. Technical Report UCB/EECS-2007-123, EECS Dept., U.C. Berkeley, Oct 2007.
[11]
R.W. Floyd. Algorithm 97: Shortest path. Commun. ACM, 5:345, June 1962.
[12]
M.T. Heath and C.H. Romine. Parallel solution of triangular systems on distributed-memory multiprocessors. SIAM Journal on Scientific and Statistical Computing, 9(3):558--588, 1988.
[13]
D. Irony and S. Toledo. Trading replication for communication in parallel distributed-memory dense solvers. Parallel Processing Letters, 71:3--28, 2002.
[14]
D. Irony, S. Toledo, and A. Tiskin. Communication lower bounds for distributed-memory matrix multiplication. Journal of Parallel and Distributed Computing, 64(9):1017--1026, 2004.
[15]
H. Jia-Wei and H. T. Kung. I/O complexity: The red-blue pebble game. In Proceedings of the thirteenth annual ACM symposium on Theory of computing, STOC '81, pages 326--333, New York, NY, USA, 1981. ACM.
[16]
L.H. Loomis and H. Whitney. An inequality related to the isoperimetric inequality. Bulletin of the AMS, 55:961--962, 1949.
[17]
W. F. McColl and A. Tiskin. Memory-efficient matrix multiplication in the BSP model. Algorithmica, 24:287--297, 1999.
[18]
C. Papadimitriou and J. Ullman. A communication-time tradeoff. SIAM Journal on Computing, 16(4):639--646, 1987.
[19]
J. Poulson, B. Maker, J. R. Hammond, N. A. Romero, and R. van de Geijn. Elemental: A new framework for distributed memory dense matrix computations. ACM Transactions on Mathematical Software, 39(2):13, 2013.
[20]
E. Solomonik, E. Carson, N. Knight, and J. Demmel. Tradeoffs between synchronization, communication, and work in parallel linear algebra computations. Technical Report UCB/EECS-2014-8, EECS Department, University of California, Berkeley, Jan 2014.
[21]
E. Solomonik and J. Demmel. Communication-optimal 2.5D matrix multiplication and LU factorization algorithms. In Springer Lecture Notes in Computer Science, Proceedings of Euro-Par, Bordeaux, France, Aug 2011.
[22]
D.C. Sorensen. Analysis of pairwise pivoting in Gaussian Elimination. Computers, IEEE Transactions on, C-34(3):274--278, March 1985.
[23]
Volker Strassen. Gaussian elimination is not optimal. Numerische Mathematik, 13(4):354--356, 1969.
[24]
A Tiskin. The Design and Analysis of Bulk-Synchronous Parallel Algorithms. PhD thesis, University of Oxford, 1998.
[25]
A. Tiskin. All-pairs shortest paths computation in the BSP model. Lecture Notes in Computer Science, Automata, Languages and Programming, 2076:178--189, 2001.
[26]
A. Tiskin. Communication-efficient parallel generic pairwise elimination. Future Generation Computer Systems, 23(2):179--188, 2007.
[27]
Leslie G Valiant. A bridging model for parallel computation. Communications of the ACM, 33(8):103--111, 1990.
[28]
S. Warshall. A theorem on boolean matrices. J. ACM, 9:11--12, January 1962.

Cited By

View all
  • (2023)Demystifying Graph Databases: Analysis and Taxonomy of Data Organization, System Designs, and Graph QueriesACM Computing Surveys10.1145/360493256:2(1-40)Online publication date: 15-Sep-2023
  • (2019)Tessellating Star StencilsProceedings of the 48th International Conference on Parallel Processing10.1145/3337821.3337835(1-10)Online publication date: 5-Aug-2019
  • (2019)Trade-offs between computation, communication, and synchronization in stencil-collective alternate updateCCF Transactions on High Performance Computing10.1007/s42514-019-00011-xOnline publication date: 26-Jul-2019
  • Show More Cited By

Index Terms

  1. Tradeoffs between synchronization, communication, and computation in parallel linear algebra computations

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      SPAA '14: Proceedings of the 26th ACM symposium on Parallelism in algorithms and architectures
      June 2014
      356 pages
      ISBN:9781450328210
      DOI:10.1145/2612669
      • General Chair:
      • Guy Blelloch,
      • Program Chair:
      • Peter Sanders
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 21 June 2014

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. communication cost
      2. dense linear algebra
      3. krylov subspace methods
      4. parallel computing
      5. synchronization cost

      Qualifiers

      • Research-article

      Funding Sources

      Conference

      SPAA '14

      Acceptance Rates

      SPAA '14 Paper Acceptance Rate 30 of 122 submissions, 25%;
      Overall Acceptance Rate 447 of 1,461 submissions, 31%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)4
      • Downloads (Last 6 weeks)1
      Reflects downloads up to 16 Oct 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2023)Demystifying Graph Databases: Analysis and Taxonomy of Data Organization, System Designs, and Graph QueriesACM Computing Surveys10.1145/360493256:2(1-40)Online publication date: 15-Sep-2023
      • (2019)Tessellating Star StencilsProceedings of the 48th International Conference on Parallel Processing10.1145/3337821.3337835(1-10)Online publication date: 5-Aug-2019
      • (2019)Trade-offs between computation, communication, and synchronization in stencil-collective alternate updateCCF Transactions on High Performance Computing10.1007/s42514-019-00011-xOnline publication date: 26-Jul-2019
      • (2018)Communication-Avoiding for Dynamical Core of Atmospheric General Circulation ModelProceedings of the 47th International Conference on Parallel Processing10.1145/3225058.3225140(1-10)Online publication date: 13-Aug-2018
      • (2017)Scaling betweenness centrality using communication-efficient sparse matrix multiplicationProceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis10.1145/3126908.3126971(1-14)Online publication date: 12-Nov-2017
      • (2017)A Communication-Avoiding Parallel Algorithm for the Symmetric Eigenvalue ProblemProceedings of the 29th ACM Symposium on Parallelism in Algorithms and Architectures10.1145/3087556.3087561(111-121)Online publication date: 24-Jul-2017
      • (2017)Trade-Offs Between Synchronization, Communication, and Computation in Parallel Linear Algebra ComputationsACM Transactions on Parallel Computing10.1145/28971883:1(1-47)Online publication date: 17-Jan-2017
      • (2017)Communication-Avoiding Parallel Algorithms for Solving Triangular Systems of Linear Equations2017 IEEE International Parallel and Distributed Processing Symposium (IPDPS)10.1109/IPDPS.2017.104(678-687)Online publication date: May-2017

      View Options

      Get Access

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media