Skip to main content

2010 | OriginalPaper | Buchkapitel

5. Dynamic Programming Approaches to Optimizing the Blocking Strategy for Basic Matrix Decompositions

verfasst von : Yusaku Yamamoto, Takeshi Fukaya

Erschienen in: Software Automatic Tuning

Verlag: Springer New York

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

In this chapter, we survey several approaches to optimizing the blocking strategy for basic matrix decompositions, such as LU, Cholesky, and QR. Conventional blocking strategies such as fixed-size blocking and recursive blocking are widely used to optimize the performance of these decompositions. However, these strategies have only a small number of parameters such as the block size or the level of recursion and are not sufficiently flexible to exploit the performance of modern high-performance architectures. As such, several attempts have been made to define a much larger class of strategies and to choose the best strategy among them according to the target machine and the matrix size. The number of candidate strategies is usually exponential in the size of the matrix. However, with the use of dynamic programming, the cost of optimization can be reduced to a realistic level. As representatives of such approaches, we survey variable-size blocking, generalized recursive blocking, and the combination of variable-size blocking and the TSQR algorithm. Directions for future research are also discussed.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Golub GH, van Loan CF (1996) Matrix computations, 3rd edn. Johns Hopkins University PressMATH Golub GH, van Loan CF (1996) Matrix computations, 3rd edn. Johns Hopkins University PressMATH
2.
Zurück zum Zitat Stewart GW (2001) Matrix algorithms, Vol II: Eigensystems. SIAMMATH Stewart GW (2001) Matrix algorithms, Vol II: Eigensystems. SIAMMATH
3.
Zurück zum Zitat Bischof C, van Lang B (2000) Algorithm 807: The SBR toolbox - software for successive band reduction. ACM Trans Math Software 26:602–616MathSciNetCrossRef Bischof C, van Lang B (2000) Algorithm 807: The SBR toolbox - software for successive band reduction. ACM Trans Math Software 26:602–616MathSciNetCrossRef
4.
Zurück zum Zitat Freund RW, Malhotra M (1997) A block QMR algorithm for non-hermitian linear systems with multiple right-hand sides. Linear Algebra Appl 254:119–157MathSciNetMATHCrossRef Freund RW, Malhotra M (1997) A block QMR algorithm for non-hermitian linear systems with multiple right-hand sides. Linear Algebra Appl 254:119–157MathSciNetMATHCrossRef
5.
Zurück zum Zitat Moler CB, Stewart GW (1980) The block conjugate gradient algorithm and related methods. Linear Algebra Appl 29:293–322MathSciNetCrossRef Moler CB, Stewart GW (1980) The block conjugate gradient algorithm and related methods. Linear Algebra Appl 29:293–322MathSciNetCrossRef
6.
Zurück zum Zitat Dongarra J, Croz JD, Hammarling S, Hanson RJ (1988) An extended set of FORTRAN basic linear algebra subprograms. ACM Trans Math Software 14:1–17MATHCrossRef Dongarra J, Croz JD, Hammarling S, Hanson RJ (1988) An extended set of FORTRAN basic linear algebra subprograms. ACM Trans Math Software 14:1–17MATHCrossRef
7.
Zurück zum Zitat Elmroth E, Gustavson F (2000) Applying recursion to serial and parallel QR factorization leads to better performance. IBM J Res Dev 44:605–624CrossRef Elmroth E, Gustavson F (2000) Applying recursion to serial and parallel QR factorization leads to better performance. IBM J Res Dev 44:605–624CrossRef
8.
Zurück zum Zitat Bischof C, Lacroute P (1990) An adaptive blocking strategy for matrix factorizations. In: Proceedings of the Joint International Conference on Vector and Parallel Processing. Lecture Notes in Computer Science, vol 457, Springer, pp 210–221 Bischof C, Lacroute P (1990) An adaptive blocking strategy for matrix factorizations. In: Proceedings of the Joint International Conference on Vector and Parallel Processing. Lecture Notes in Computer Science, vol 457, Springer, pp 210–221
9.
Zurück zum Zitat Fukaya T, Yamamoto Y, Zhang SL (2008) A dynamic programming approach to optimizing the blocking strategy for the Householder QR decomposition. In: Proceedings of IEEE Cluster 2008. pp 402–410 Fukaya T, Yamamoto Y, Zhang SL (2008) A dynamic programming approach to optimizing the blocking strategy for the Householder QR decomposition. In: Proceedings of IEEE Cluster 2008. pp 402–410
11.
Zurück zum Zitat Fukaya T, Yamamoto Y, Zhang SL (2009) A study on automatic tuning for parallel computation of the blocked Housseholder QR decomposition. In: IPSJ SIG Technical Report. HPC-121-18 Fukaya T, Yamamoto Y, Zhang SL (2009) A study on automatic tuning for parallel computation of the blocked Housseholder QR decomposition. In: IPSJ SIG Technical Report. HPC-121-18
12.
Zurück zum Zitat Fukaya T, Yamamoto Y, Zhang SL (2009) An approach to automatic tuning for parallel Householder QR decomposition. In: iWAPT2009 poster presentation Fukaya T, Yamamoto Y, Zhang SL (2009) An approach to automatic tuning for parallel Householder QR decomposition. In: iWAPT2009 poster presentation
14.
Zurück zum Zitat Demmel JW, Grigori L, Hoemmen MF, Langou J (2008) Communication-optimal parallel and sequential QR and LU factorizations. LAPACK Working Notes 204 Demmel JW, Grigori L, Hoemmen MF, Langou J (2008) Communication-optimal parallel and sequential QR and LU factorizations. LAPACK Working Notes 204
15.
Zurück zum Zitat Stewart GW (1998) Matrix algorithms, vol I, Basic decompositions. SIAMMATH Stewart GW (1998) Matrix algorithms, vol I, Basic decompositions. SIAMMATH
16.
17.
Zurück zum Zitat Schreiber R, van Loan CF (1989) A storage-efficient WY representation for products of householder transformations. SIAM J Sci Stat Comput 10:53–57MATHCrossRef Schreiber R, van Loan CF (1989) A storage-efficient WY representation for products of householder transformations. SIAM J Sci Stat Comput 10:53–57MATHCrossRef
18.
Zurück zum Zitat Puglisi C (1992) Modification of the Householder method based on the compact WY representation. SIAM J Sci Stat Comput 13:723–726MathSciNetMATHCrossRef Puglisi C (1992) Modification of the Householder method based on the compact WY representation. SIAM J Sci Stat Comput 13:723–726MathSciNetMATHCrossRef
19.
Zurück zum Zitat Anderson E, Bai Z, Bischof C, Demmel J, Dongarra J, Croz JD, Greenbaum A, Hammarling S, McKenney A, Ostrouchov S, Sorensen D (1992) LAPACK user’s guide. SIAM Anderson E, Bai Z, Bischof C, Demmel J, Dongarra J, Croz JD, Greenbaum A, Hammarling S, McKenney A, Ostrouchov S, Sorensen D (1992) LAPACK user’s guide. SIAM
20.
Zurück zum Zitat Bellman R (2003) Dynamic programming. Dover Bellman R (2003) Dynamic programming. Dover
21.
Zurück zum Zitat Bertsekas DP, Tsitsiklis JN (1996) Neuro-dynamic programming. Athena ScientificMATH Bertsekas DP, Tsitsiklis JN (1996) Neuro-dynamic programming. Athena ScientificMATH
22.
Zurück zum Zitat Dackland K, Kågström B (1996) A hierarchical approach for performance analysis of ScaLAPACK-based routines using the distributed linear algebra machine. In: Proceedings of Workshop on Applied Parallel Computing in Industrial Computation and Optimization (PARA96). Lecture Notes in Computer Science, vol 1184, Springer, pp 187–195 Dackland K, Kågström B (1996) A hierarchical approach for performance analysis of ScaLAPACK-based routines using the distributed linear algebra machine. In: Proceedings of Workshop on Applied Parallel Computing in Industrial Computation and Optimization (PARA96). Lecture Notes in Computer Science, vol 1184, Springer, pp 187–195
23.
Zurück zum Zitat Cuenca J, Garcia LP, Gimenez DG (2004) Empirical modelling of parallel linear algebra routines. In: Proceedings of the 5th International Conference on Parallel Processing and Applied Mathematics (PPAM2003). Lecture Notes in Computer Science, vol 3019, Springer, pp 169–174 Cuenca J, Garcia LP, Gimenez DG (2004) Empirical modelling of parallel linear algebra routines. In: Proceedings of the 5th International Conference on Parallel Processing and Applied Mathematics (PPAM2003). Lecture Notes in Computer Science, vol 3019, Springer, pp 169–174
24.
Zurück zum Zitat Yamamoto Y (2005) Performance modeling and optimal block size selection for a BLAS-3 based tridiagonalization algorithm. In: Proceedings of HPC-Asia 2005, Beijing, pp 249–256 Yamamoto Y (2005) Performance modeling and optimal block size selection for a BLAS-3 based tridiagonalization algorithm. In: Proceedings of HPC-Asia 2005, Beijing, pp 249–256
25.
Zurück zum Zitat Karlsson L, Kågström B (2008) A framework for dynamic node-scheduling of two-sided blocked matrix computations. In: Proceedings of PARA08. Lecture Notes in Computer Science, to appear Karlsson L, Kågström B (2008) A framework for dynamic node-scheduling of two-sided blocked matrix computations. In: Proceedings of PARA08. Lecture Notes in Computer Science, to appear
26.
Zurück zum Zitat Yamamoto Y, Fukaya T, Uneyama T, Takata M, Kimura K, Iwasaki M, Nakamura Y (2007) Accelerating the singular value decomposition of rectangular matrices with the CSX600 and the Integrable SVD. In: Parallel computing technologies. Lecture Notes in Computer Science, vol 4671, Springer, pp 340–345 Yamamoto Y, Fukaya T, Uneyama T, Takata M, Kimura K, Iwasaki M, Nakamura Y (2007) Accelerating the singular value decomposition of rectangular matrices with the CSX600 and the Integrable SVD. In: Parallel computing technologies. Lecture Notes in Computer Science, vol 4671, Springer, pp 340–345
27.
Zurück zum Zitat Yamamoto Y, Miyata T, Nakamura Y (2007) Accelerating the complex Hessenberg QR algorithm with the CSX600 floating-point coprocessor. In: Proceedings of The 19th IASTED International Conference on Parallel and Distributed Computing and Systems (PDCS2007), Cambridge, pp 204–211 Yamamoto Y, Miyata T, Nakamura Y (2007) Accelerating the complex Hessenberg QR algorithm with the CSX600 floating-point coprocessor. In: Proceedings of The 19th IASTED International Conference on Parallel and Distributed Computing and Systems (PDCS2007), Cambridge, pp 204–211
28.
Zurück zum Zitat Volkov V, Demmel JW (2008) LU, QR and Cholesky factorizations using vector capabilities of GPUs. LAPACK Working Notes 202 Volkov V, Demmel JW (2008) LU, QR and Cholesky factorizations using vector capabilities of GPUs. LAPACK Working Notes 202
29.
Zurück zum Zitat Suda R (2007) A Bayesian method for online code selection: Toward efficient and robust methods of automatic tuning. In: Proceedings of the Second International Workshop on Automatic Performance Tuning (iWAPT2007), Tokyo, pp 23–31 Suda R (2007) A Bayesian method for online code selection: Toward efficient and robust methods of automatic tuning. In: Proceedings of the Second International Workshop on Automatic Performance Tuning (iWAPT2007), Tokyo, pp 23–31
30.
Zurück zum Zitat Daoudi E, Lakhouaja A, Outada H (2001) Study of the parallel block one-sided Jacobi method. In: Proceedings of HPCN Europe 2001. Lecture Notes in Computer Science, vol 2110, Springer, pp 454–463 Daoudi E, Lakhouaja A, Outada H (2001) Study of the parallel block one-sided Jacobi method. In: Proceedings of HPCN Europe 2001. Lecture Notes in Computer Science, vol 2110, Springer, pp 454–463
Metadaten
Titel
Dynamic Programming Approaches to Optimizing the Blocking Strategy for Basic Matrix Decompositions
verfasst von
Yusaku Yamamoto
Takeshi Fukaya
Copyright-Jahr
2010
Verlag
Springer New York
DOI
https://doi.org/10.1007/978-1-4419-6935-4_5

Neuer Inhalt