Skip to main content

2010 | OriginalPaper | Buchkapitel

7. Automatically Tuned Mixed-Precision Conjugate Gradient Solver

verfasst von : Serban Georgescu, Hiroshi Okuda

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

Linear algebra solvers such as the conjugate gradients method are at the base of numerous scientific and industrial applications. Among these, Krylov type iterative solvers are highly memory bounded, meaning that their bottleneck lies in the transfer of data from memory. The tremendous computational power current multicore processors and hardware accelerators, such as the graphic processing unit (GPU), are capable of, puts a great strain on interconnects, both external (e.g., networks) and internal (e.g., memory and PCIe buses). By using a lower precision for most of the computations, the technique of iterative refinement enables one to reduce the amount of memory being transferred at all levels, thus increasing computational performance. Moreover, it makes possible the use of more cost-effective accelerators, such as cheap GPUs, that lack support for native double precision, for tasks requiring double precision accuracy. In this chapter, we propose two heuristics for automatically setting the two parameters needed for using iterative refinement: the inner residual reduction target and the stopping criteria. Although the heuristics prove effective for most matrices from our test collection, we find many cases in which the increase in iterations due to the restarting of the solver leads to an actual decrease in performance.

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 Magnus R, Hestenes and Eduard Stiefel (1952) Methods of conjugate gradients for solving linear systems. J Res Natl Bur Stand 49:409–436 Magnus R, Hestenes and Eduard Stiefel (1952) Methods of conjugate gradients for solving linear systems. J Res Natl Bur Stand 49:409–436
2.
Zurück zum Zitat Saad Y (2003) Iterative methods for sparse linear systems, 2nd edn. SIAM Saad Y (2003) Iterative methods for sparse linear systems, 2nd edn. SIAM
3.
Zurück zum Zitat Langou J et al (2006) Exploiting the performance of 32 bit floating point arithmetic in obtaining 64 bit accuracy. In: SC06 Langou J et al (2006) Exploiting the performance of 32 bit floating point arithmetic in obtaining 64 bit accuracy. In: SC06
4.
Zurück zum Zitat Higham N (2002) Accuracy and stability of numerical algorithms, 2nd edn. SIAM: Society for Industrial and Applied MathematicsMATHCrossRef Higham N (2002) Accuracy and stability of numerical algorithms, 2nd edn. SIAM: Society for Industrial and Applied MathematicsMATHCrossRef
5.
Zurück zum Zitat Göddeke D, Strzodka R, Turek S (2007) Performance and accuracy of hardware-oriented native-, emulated- and mixed-precision solvers in FEM simulations. Int J Parallel Emergent Distrib Syst 22(4):221–256MathSciNetMATHCrossRef Göddeke D, Strzodka R, Turek S (2007) Performance and accuracy of hardware-oriented native-, emulated- and mixed-precision solvers in FEM simulations. Int J Parallel Emergent Distrib Syst 22(4):221–256MathSciNetMATHCrossRef
6.
Zurück zum Zitat Buttari A et al (2008) Using mixed precision for sparse matrix computations to enhance the performance while achieving 64-bit accuracy. ACM Trans Math Software 34(4) Buttari A et al (2008) Using mixed precision for sparse matrix computations to enhance the performance while achieving 64-bit accuracy. ACM Trans Math Software 34(4)
8.
Zurück zum Zitat Wilkinson JH (1994) Rounding errors in algebraic processes. Dover Publications, IncorporatedMATH Wilkinson JH (1994) Rounding errors in algebraic processes. Dover Publications, IncorporatedMATH
9.
Zurück zum Zitat Demmel J, Hida Y, Kahan W, Li XS, Mukherjee S, Riedy EJ (2006) Error bounds from extra-precise iterative refinement. ACM Trans Math Software 32(2):325–351MathSciNetCrossRef Demmel J, Hida Y, Kahan W, Li XS, Mukherjee S, Riedy EJ (2006) Error bounds from extra-precise iterative refinement. ACM Trans Math Software 32(2):325–351MathSciNetCrossRef
10.
Zurück zum Zitat Conte SD, De Boor CW (1980) Elementary numerical analysis: an algorithmic approach. McGraw-Hill Higher Education Conte SD, De Boor CW (1980) Elementary numerical analysis: an algorithmic approach. McGraw-Hill Higher Education
Metadaten
Titel
Automatically Tuned Mixed-Precision Conjugate Gradient Solver
verfasst von
Serban Georgescu
Hiroshi Okuda
Copyright-Jahr
2010
Verlag
Springer New York
DOI
https://doi.org/10.1007/978-1-4419-6935-4_7

Neuer Inhalt