Evaluating the Performance of NVIDIA's A100 Ampere GPU

Total Page:16

File Type:pdf, Size:1020Kb

Evaluating the Performance of NVIDIA's A100 Ampere GPU Evaluating the Performance of NVIDIA’s A100 Ampere GPU for Sparse Linear Algebra Computations Preprint, compiled August 20, 2020 Yuhsiang Mike Tsai Terry Cojean Hartwig Anzt Karlsruhe Institute of Technology, Karlsruhe Institute of Technology, Karlsruhe Institute of Technology, Germany Germany Germany [email protected] [email protected] University of Tennessee, Knoxville, USA [email protected] Abstract GPU accelerators have become an important backbone for scientific high performance computing, and the performance advances obtained from adopting new GPU hardware are significant. In this paper we take a first look at NVIDIA’s newest server line GPU, the A100 architecture part of the Ampere generation. Specifically, we assess its performance for sparse linear algebra operations that form the backbone of many scientific applications and assess the performance improvements over its predecessor. Keywords Sparse Linear Algebra · Sparse Matrix Vector Product · NVIDIA A100 GPU 1I ntroduction we refer to the whitepaper [20], and encourage the reader to digest the performance results we present side-by-side with Over the last decade, Graphic Processing Units (GPUs) have these technical details. seen an increasing adoption in high performance computing platforms, and in the June 2020 TOP500 list, more than half of the fastest 10 systems feature GPU accelerators [1]. At the same 2M emory Bandwidth Assessment time, the June 2020 edition of the TOP500 is the first edition The performance of sparse linear algebra operations on modern listing a system equipped with NVIDIA’s new A100 GPU, the hardware architectures is usually limited by the data access HPC line GPU of the Ampere generation. As the scientific high rather than compute power. In consequence, for sparse linear performance computing community anticipates this GPU to be algebra, the performance-critical hardware characteristics are the the new flagship architecture in NVIDIA’s hardware portfolio, memory bandwidth and the access latency. For main memory we take a look at the performance we achieve on the A100 for access, both metrics are typically somewhat intertwined, in sparse linear algebra operations. particular on processors operating in streaming mode like GPUs. Specifically, we first benchmark in Section2 the bandwidth of In this section, we assess the memory access performance by the A100 GPU for memory-bound vector operations and com- means of the Babel-STREAM benchmark [10]. pare against NVIDIA’s A100 predecessor, the V100 GPU. In We show the Babel-STREAM benchmark results for both an Section3, we review the sparse matrix vector product ( SpMV), NVIDIA V100 GPU Figure 1a and an NVIDIA A100 GPU Fig- a central kernel for sparse linear algebra, and outline the pro- ure 1b. The figures reflect a significant bandwidth improvement cessing strategy used in some popular kernel realizations. In for all operations on the A100 compared to the V100. For an Section4, we evaluate the performance of SpMV kernels on the array of size 8.2 GB, the V100 reaches for all operations a per- A100 GPU for more than 2,800 matrices available in the Suite formance between 800 and 840 GB/s whereas the A100 reaches Sparse Matrix Collection [22]. The SpMV kernels we consider a bandwidth between 1.33 and 1.4 TB/s. arXiv:2008.08478v1 [cs.MS] 19 Aug 2020 in this performance evaluation are taken from NVIDIA’s latest release of the cuSPARSE library and the Ginkgo linear alge- In Figure2, we present the data as a ratio between the A100 and bra library [2]. In Section5, we compare the performance of V100 bandwidth performance for all operations. In Figure 2a, the A100 against its predecessor for complete Krylov solver we show the performance ratio for increasing array sizes and iterations that are popular methods for iterative sparse linear observe the A100 providing a lower bandwidth than the V100 system solves. In Section6, we summarize the performance GPU for arrays of small size. For large array sizes, the A100 has assessment results and draw some preliminary conclusions on a significantly higher bandwidth, converging towards a speedup what performance we may achieve for sparse linear algebra on factor of 1.7 for most memory access benchmarks, see Figure 2b. the A100 GPU. We emphasize that with this paper, we do not intend to provide another technical specification of NVIDIA’s A100 GPU, but 3S parse Matrix Vector Product instead focus on the reporting of performance we observe on this architecture for sparse linear algebra operations. Still, for The sparse matrix-vector product (SpMV) is a heavily-used op- convenience, we append a table from NVIDIA’s whitepaper on eration in many scientific applications. The spectrum ranges the NVIDIA A100 Tensor Core GPU Architecture [20] that lists from the power iteration [8], an iterative algorithm for finding some key characteristics and compares against the predecessor eigenpairs in Google’s Page Rank algorithm [16], to iterative GPU architectures. For further information on the A100 GPU, linear system solvers like Krylov solvers that form the backbone Preprint –Evaluating the Performance of NVIDIA’s A100 Ampere GPU for Sparse Linear Algebra Computations 2 ● ● ● ● 1000 ● ● ● 1000 ● ● ● 100 Function 100 Function ● Add ● Add Copy Copy ● GB/s Dot GB/s ● Dot Mul Mul 10 Triad 10 Triad 1 1 10−1 100 101 102 103 104 10−1 100 101 102 103 104 Array Size (MB) Array Size (MB) (a) V100 (b) A100 Figure 1: Performance of the Babel-STREAM benchmark on both V100 and A100 NVIDIA GPUs. ● 2.0 1.5 ● ● ● Function Function 1.5 ● Add 1.0 Add Copy Copy Dot Dot Mul Mul Triad Triad 0.5 1.0 ● ● Bandwidth Ratio (A100/V100) Bandwidth Ratio (A100/V100) 0.0 10−1 100 101 102 103 104 Add Copy Dot Mul Triad Array Size (MB) Function (a) Evolution of the A100/V100 ratio for different array sizes. (b) A100/V100 ratio for an array of size 8.2 GB. Figure 2: Ratio of the performance improvement of A100 compared to V100 NVIDIA GPUs for the Babel-STREAM benchmark. of many finite element simulations. Given this importance, we right-hand side in Figure3. However, as this can result in sev- put particular focus on the performance of the SpMV operation eral processing elements contributing partial sums to the same on NVIDIA’s A100 GPU. However, the performance not only vector output entry, sophisticated techniques for lightweight depends on the hardware and the characteristics of the sparse synchronization are needed to avoid write conflicts [11]. matrix but also the specific SpMV format and processing strategy. Starting from the COO format, further reduction of the stor- Generally, all SpMV kernels aim at reducing the memory access age cost is possible if the elements are sorted row-wise, and cost (and computational cost) by storing only the nonzero matrix with increasing column-order in every row. (The latter assump- values [6]. Some formats additionally store a moderate amount tion is technically not required, but it usually results in better of zero elements to enable faster processing when computing performance.) Then, this Compressed Sparse Row (CSR [6]) matrix-vector products [7]. But independent of the specific strat- format can replace the array containing the row indexes with egy, since SpMV kernels store only a subset of the elements, they a pointer to the beginning of the distinct rows, see the second share the need to accompany these values with information that row in Figure3. While this generally reduces the data volume, allows to deduce their location in the original matrix [3]. We the CSR format requires extra processing to determine the row here recall in Figure3 some widespread sparse matrix storage location of a certain element. For a standard parallelization over formats and kernel parallelization techniques. the matrix rows, the row location is implicitly given, and no A straightforward idea is to accompany the nonzero elements additional information is needed. However, similar to the COO with the respective row and column indexes. This storage format, format, better load balancing is available if parallelizing across known as coordinate (COO [6]) format, allows determining the nonzero elements. This requires the matrix row information and original position of any element in the matrix without processing sophisticated atomic writes to the output vector [12]. other entries, see first row in Figure3. A standard parallelization A strategy that reduces the row indexing information even fur- of this approach assigns the matrix rows to the distinct process- ther is to pad all rows to the same number of nonzero elements ing elements (cores). However, if few rows contain a significant and accompany the values only with the column indexes. In portion of the overall nonzeros, this can result in a significant this ELL format [7] (third row in Figure3), the row index of an imbalance of the kernel and poor performance. A workaround is element can be deduced from its location in the array storing the to distribute the nonzeros across the parallel resources, see the Preprint –Evaluating the Performance of NVIDIA’s A100 Ampere GPU for Sparse Linear Algebra Computations 3 Parallelize over rows Parallelize over nonzero elements access to access to access to access to input vector x output vector y input vector x output vector y 5.41.10 0 0 0 5.41.10 0 0 0 T1 2.28.303.71.33.8 2.28.303.71.33.8 0 1 T2 004.20 0 0 0 004.20 0 01 A = * = A = * = T3 B 5.40 09.20 0C B 5.40 09.20 0C B C B C T4 B 00001.10C B 00001.10C B C B C T5 CSR format : B 000008.1 C B 000008.1 C B C B C T6 @ A @ A value = [ 5.41.12.28.33.71.33.84.25.49.21.18.1]
Recommended publications
  • Efficient Algorithms for High-Dimensional Eigenvalue
    Efficient Algorithms for High-dimensional Eigenvalue Problems by Zhe Wang Department of Mathematics Duke University Date: Approved: Jianfeng Lu, Advisor Xiuyuan Cheng Jonathon Mattingly Weitao Yang Dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the Department of Mathematics in the Graduate School of Duke University 2020 ABSTRACT Efficient Algorithms for High-dimensional Eigenvalue Problems by Zhe Wang Department of Mathematics Duke University Date: Approved: Jianfeng Lu, Advisor Xiuyuan Cheng Jonathon Mattingly Weitao Yang An abstract of a dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the Department of Mathematics in the Graduate School of Duke University 2020 Copyright © 2020 by Zhe Wang All rights reserved Abstract The eigenvalue problem is a traditional mathematical problem and has a wide appli- cations. Although there are many algorithms and theories, it is still challenging to solve the leading eigenvalue problem of extreme high dimension. Full configuration interaction (FCI) problem in quantum chemistry is such a problem. This thesis tries to understand some existing algorithms of FCI problem and propose new efficient algorithms for the high-dimensional eigenvalue problem. In more details, we first es- tablish a general framework of inexact power iteration and establish the convergence theorem of full configuration interaction quantum Monte Carlo (FCIQMC) and fast randomized iteration (FRI). Second, we reformulate the leading eigenvalue problem as an optimization problem, then compare the show the convergence of several coor- dinate descent methods (CDM) to solve the leading eigenvalue problem. Third, we propose a new efficient algorithm named Coordinate descent FCI (CDFCI) based on coordinate descent methods to solve the FCI problem, which produces some state-of- the-art results.
    [Show full text]
  • Implicitly Restarted Arnoldi/Lanczos Methods for Large Scale Eigenvalue Calculations
    https://ntrs.nasa.gov/search.jsp?R=19960048075 2020-06-16T03:31:45+00:00Z NASA Contractor Report 198342 /" ICASE Report No. 96-40 J ICA IMPLICITLY RESTARTED ARNOLDI/LANCZOS METHODS FOR LARGE SCALE EIGENVALUE CALCULATIONS Danny C. Sorensen NASA Contract No. NASI-19480 May 1996 Institute for Computer Applications in Science and Engineering NASA Langley Research Center Hampton, VA 23681-0001 Operated by Universities Space Research Association National Aeronautics and Space Administration Langley Research Center Hampton, Virginia 23681-0001 IMPLICITLY RESTARTED ARNOLDI/LANCZOS METHODS FOR LARGE SCALE EIGENVALUE CALCULATIONS Danny C. Sorensen 1 Department of Computational and Applied Mathematics Rice University Houston, TX 77251 sorensen@rice, edu ABSTRACT Eigenvalues and eigenfunctions of linear operators are important to many areas of ap- plied mathematics. The ability to approximate these quantities numerically is becoming increasingly important in a wide variety of applications. This increasing demand has fu- eled interest in the development of new methods and software for the numerical solution of large-scale algebraic eigenvalue problems. In turn, the existence of these new methods and software, along with the dramatically increased computational capabilities now avail- able, has enabled the solution of problems that would not even have been posed five or ten years ago. Until very recently, software for large-scale nonsymmetric problems was virtually non-existent. Fortunately, the situation is improving rapidly. The purpose of this article is to provide an overview of the numerical solution of large- scale algebraic eigenvalue problems. The focus will be on a class of methods called Krylov subspace projection methods. The well-known Lanczos method is the premier member of this class.
    [Show full text]
  • Accelerated Stochastic Power Iteration
    Accelerated Stochastic Power Iteration CHRISTOPHER DE SAy BRYAN HEy IOANNIS MITLIAGKASy CHRISTOPHER RE´ y PENG XU∗ yDepartment of Computer Science, Stanford University ∗Institute for Computational and Mathematical Engineering, Stanford University cdesa,bryanhe,[email protected], [email protected], [email protected] July 11, 2017 Abstract Principal component analysis (PCA) is one of the most powerful tools in machine learning. The simplest method for PCA, the power iteration, requires O(1=∆) full-data passes to recover the principal component of a matrix withp eigen-gap ∆. Lanczos, a significantly more complex method, achieves an accelerated rate of O(1= ∆) passes. Modern applications, however, motivate methods that only ingest a subset of available data, known as the stochastic setting. In the online stochastic setting, simple 2 2 algorithms like Oja’s iteration achieve the optimal sample complexity O(σ =p∆ ). Unfortunately, they are fully sequential, and also require O(σ2=∆2) iterations, far from the O(1= ∆) rate of Lanczos. We propose a simple variant of the power iteration with an added momentum term, that achieves both the optimal sample and iteration complexity.p In the full-pass setting, standard analysis shows that momentum achieves the accelerated rate, O(1= ∆). We demonstrate empirically that naively applying momentum to a stochastic method, does not result in acceleration. We perform a novel, tight variance analysis that reveals the “breaking-point variance” beyond which this acceleration does not occur. By combining this insight with modern variance reduction techniques, we construct stochastic PCAp algorithms, for the online and offline setting, that achieve an accelerated iteration complexity O(1= ∆).
    [Show full text]
  • Numerical Linear Algebra Program Lecture 4 Basic Methods For
    Program Lecture 4 Numerical Linear Algebra • Basic methods for eigenproblems. Basic iterative methods • Power method • Shift-and-invert Power method • QR algorithm • Basic iterative methods for linear systems • Richardson’s method • Jacobi, Gauss-Seidel and SOR • Iterative refinement Gerard Sleijpen and Martin van Gijzen • Steepest decent and the Minimal residual method October 5, 2016 1 October 5, 2016 2 National Master Course National Master Course Delft University of Technology Basic methods for eigenproblems The Power method The eigenvalue problem The Power method is the classical method to compute in modulus largest eigenvalue and associated eigenvector of a Av = λv matrix. can not be solved in a direct way for problems of order > 4, since Multiplying with a matrix amplifies strongest the eigendirection the eigenvalues are the roots of the characteristic equation corresponding to the in modulus largest eigenvalues. det(A − λI) = 0. Successively multiplying and scaling (to avoid overflow or underflow) yields a vector in which the direction of the largest Today we will discuss two iterative methods for solving the eigenvector becomes more and more dominant. eigenproblem. October 5, 2016 3 October 5, 2016 4 National Master Course National Master Course Algorithm Convergence (1) The Power method for an n × n matrix A. Let the n eigenvalues λi with eigenvectors vi, Avi = λivi, be n ordered such that |λ1| ≥ |λ2|≥ . ≥ |λn|. u0 ∈ C is given • Assume the eigenvectors v ,..., vn form a basis. for k = 1, 2, ... 1 • Assume |λ1| > |λ2|. uk = Auk−1 Each arbitrary starting vector u0 can be written as: uk = uk/kukk2 e(k) ∗ λ = uk−1uk u0 = α1v1 + α2v2 + ..
    [Show full text]
  • Arxiv:1105.1185V1 [Math.NA] 5 May 2011 Ento 2.2
    ITERATIVE METHODS FOR COMPUTING EIGENVALUES AND EIGENVECTORS MAYSUM PANJU Abstract. We examine some numerical iterative methods for computing the eigenvalues and eigenvectors of real matrices. The five methods examined here range from the simple power iteration method to the more complicated QR iteration method. The derivations, procedure, and advantages of each method are briefly discussed. 1. Introduction Eigenvalues and eigenvectors play an important part in the applications of linear algebra. The naive method of finding the eigenvalues of a matrix involves finding the roots of the characteristic polynomial of the matrix. In industrial sized matrices, however, this method is not feasible, and the eigenvalues must be obtained by other means. Fortunately, there exist several other techniques for finding eigenvalues and eigenvectors of a matrix, some of which fall under the realm of iterative methods. These methods work by repeatedly refining approximations to the eigenvectors or eigenvalues, and can be terminated whenever the approximations reach a suitable degree of accuracy. Iterative methods form the basis of much of modern day eigenvalue computation. In this paper, we outline five such iterative methods, and summarize their derivations, procedures, and advantages. The methods to be examined are the power iteration method, the shifted inverse iteration method, the Rayleigh quotient method, the simultaneous iteration method, and the QR method. This paper is meant to be a survey over existing algorithms for the eigenvalue computation problem. Section 2 of this paper provides a brief review of some of the linear algebra background required to understand the concepts that are discussed. In section 3, the iterative methods are each presented, in order of complexity, and are studied in brief detail.
    [Show full text]
  • Lecture 12 — February 26 and 28 12.1 Introduction
    EE 381V: Large Scale Learning Spring 2013 Lecture 12 | February 26 and 28 Lecturer: Caramanis & Sanghavi Scribe: Karthikeyan Shanmugam and Natalia Arzeno 12.1 Introduction In this lecture, we focus on algorithms that compute the eigenvalues and eigenvectors of a real symmetric matrix. Particularly, we are interested in finding the largest and smallest eigenvalues and the corresponding eigenvectors. We study two methods: Power method and the Lanczos iteration. The first involves multiplying the symmetric matrix by a randomly chosen vector, and iteratively normalizing and multiplying the matrix by the normalized vector from the previous step. The convergence is geometric, i.e. the `1 distance between the true and the computed largest eigenvalue at the end of every step falls geometrically in the number of iterations and the rate depends on the ratio between the second largest and the largest eigenvalue. Some generalizations of the power method to compute the largest k eigenvalues and the eigenvectors will be discussed. The second method (Lanczos iteration) terminates in n iterations where each iteration in- volves estimating the largest (smallest) eigenvalue by maximizing (minimizing) the Rayleigh coefficient over vectors drawn from a suitable subspace. At each iteration, the dimension of the subspace involved in the optimization increases by 1. The sequence of subspaces used are Krylov subspaces associated with a random initial vector. We study the relation between Krylov subspaces and tri-diagonalization of a real symmetric matrix. Using this connection, we show that an estimate of the extreme eigenvalues can be computed at each iteration which involves eigen-decomposition of a tri-diagonal matrix.
    [Show full text]
  • AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 16: Rayleigh Quotient Iteration
    AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 16: Rayleigh Quotient Iteration Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Numerical Analysis I 1 / 10 Solving Eigenvalue Problems All eigenvalue solvers must be iterative Iterative algorithms have multiple facets: 1 Basic idea behind the algorithms 2 Convergence and techniques to speed-up convergence 3 Efficiency of implementation 4 Termination criteria We will focus on first two aspects Xiangmin Jiao Numerical Analysis I 2 / 10 Simplification: Real Symmetric Matrices We will consider eigenvalue problems for real symmetric matrices, i.e. T m×m m A = A 2 R , and Ax = λx for x 2 R p ∗ T T I Note: x = x , and kxk = x x A has real eigenvalues λ1,λ2, ::: , λm and orthonormal eigenvectors q1, q2, ::: , qm, where kqj k = 1 Eigenvalues are often also ordered in a particular way (e.g., ordered from large to small in magnitude) In addition, we focus on symmetric tridiagonal form I Why? Because phase 1 of two-phase algorithm reduces matrix into tridiagonal form Xiangmin Jiao Numerical Analysis I 3 / 10 Rayleigh Quotient m The Rayleigh quotient of x 2 R is the scalar xT Ax r(x) = xT x For an eigenvector x, its Rayleigh quotient is r(x) = xT λx=xT x = λ, the corresponding eigenvalue of x For general x, r(x) = α that minimizes kAx − αxk2. 2 x is eigenvector of A() rr(x) = x T x (Ax − r(x)x) = 0 with x 6= 0 r(x) is smooth and rr(qj ) = 0 for any j, and therefore is quadratically accurate: 2 r(x) − r(qJ ) = O(kx − qJ k ) as x ! qJ for some J Xiangmin Jiao Numerical Analysis I 4 / 10 Power
    [Show full text]
  • Math 504 (Fall 2011)
    Instructor: Emre Mengi Math 504 (Fall 2011) Study Guide for Weeks 11-14 This homework concerns the following topics. • Basic definitions and facts about eigenvalues and eigenvectors (Trefethen&Bau, Lecture 24) • Similarity transformations (Trefethen&Bau, Lecture 24) • Power, inverse and Rayleigh iterations (Trefethen&Bau, Lecture 27) • QR algorithm with and without shifts (Trefethen&Bau, Lecture 28&29) • Simultaneous power iteration and its equivalence with the QR algorithm (Trefethen&Bau, Lectures 28&29) • The implicit QR algorithm • The Arnoldi Iteration (Trefethen&Bau, Lectures 33&34) • GMRES (Trefethen&Bau, Lecture 35) Homework 5 (Assigned on Dec 26th, Mon; Due on Jan 10th, Tue by 11:00) Please turn in the solutions only to the questions marked with (*). The rest is to practice on your own. Attach Matlab output, m-files, print-outs whenever they are necessary. The Dec 10, 11:00 deadline is tight. 1. (*) Consider the matrices 2 2 4 −5 3 1 7 A = and A = 0 1 3 1 3 5 2 4 5 0 0 1 (a) Find the eigenvalues of A1 and the eigenspace associated with each of its eigenvalues. (b) Find the eigenvalues of A2 together with their algebraic and geometric multiplicities. (c) Find a Schur factorization for A1. (d) Let v0 and v1 be two linearly independent eigenvectors of A1. Suppose also that fqkg denotes the sequence of vectors generated by the inverse iteration with shift σ = 2 and 2 starting with an initial vector q0 = α0v0 + α1v1 2 C where α0; α1 are nonzero scalars. Determine the subspace that spanfqkg is approaching as k ! 1.
    [Show full text]
  • Comparison of Numerical Methods and Open-Source Libraries for Eigenvalue Analysis of Large-Scale Power Systems
    applied sciences Article Comparison of Numerical Methods and Open-Source Libraries for Eigenvalue Analysis of Large-Scale Power Systems Georgios Tzounas , Ioannis Dassios * , Muyang Liu and Federico Milano School of Electrical and Electronic Engineering, University College Dublin, Belfield, Dublin 4, Ireland; [email protected] (G.T.); [email protected] (M.L.); [email protected] (F.M.) * Correspondence: [email protected] Received: 30 September 2020; Accepted: 24 October 2020; Published: 28 October 2020 Abstract: This paper discusses the numerical solution of the generalized non-Hermitian eigenvalue problem. It provides a comprehensive comparison of existing algorithms, as well as of available free and open-source software tools, which are suitable for the solution of the eigenvalue problems that arise in the stability analysis of electric power systems. The paper focuses, in particular, on methods and software libraries that are able to handle the large-scale, non-symmetric matrices that arise in power system eigenvalue problems. These kinds of eigenvalue problems are particularly difficult for most numerical methods to handle. Thus, a review and fair comparison of existing algorithms and software tools is a valuable contribution for researchers and practitioners that are interested in power system dynamic analysis. The scalability and performance of the algorithms and libraries are duly discussed through case studies based on real-world electrical power networks. These are a model of the All-Island Irish Transmission System with 8640 variables; and, a model of the European Network of Transmission System Operators for Electricity, with 146,164 variables. Keywords: eigenvalue analysis; large non-Hermitian matrices; numerical methods; open-source libraries 1.
    [Show full text]
  • Eigenvalue Problems Last Time …
    Eigenvalue Problems Last Time … Social Network Graphs Betweenness Girvan-Newman Algorithm Graph Laplacian Spectral Bisection 휆2, 푤2 Today … Small deviation into eigenvalue problems … Formulation Standard eigenvalue problem: Given a 푛 × 푛 matrix 퐴, find scalar 휆 and a nonzero vector 푥 such that 퐴푥 = 휆푥 휆 is a eigenvalue, and 푥 is the corresponding eigenvector Spectrum = 휆(퐴) = set of eigenvalues of 퐴 Spectral radius = 퐴 = max 휆 ∶ 휆 ∈ 휆 퐴 Characteristic Polynomial Equation 퐴푥 = 휆푥 is equivalent to 퐴 − 휆퐼 푥 = 0 Eigenvalues of 퐴 are roots of the characteristic polynomial det 퐴 − 휆퐼 = 0 The characteristic polynomial is a powerful theoretical tool but usually not useful computationally Considerations Properties of eigenvalue problem affecting choice of algorithm Are all eigenvalues needed, or only a few? Are only eigenvalues needed, or are corresponding eigenvectors also needed? Is matrix real or complex? Is matrix relatively small and dense, or large and sparse? Does matrix have any special properties, such as symmetry? Problem Transformations Shift: If 퐴푥 = 휆푥 and is any scalar, then 퐴 − 퐼 푥 = 휆 − 푥 1 Inversion: If 퐴 is nonsingular and 퐴푥 = 휆푥, then 휆 ≠ 0 and 퐴−1푥 = 푥 휆 Powers: If 퐴푥 = 휆푥, then 퐴푘푥 = 휆푘푥 Polynomial: If 퐴푥 = 휆푥 and 푝(푡) is a polynomial, then 푝 퐴 푥 = 푝 휆 푥 Similarity Transforms 퐵 is similar to 퐴 if there is a nonsingular matrix 푇, such that 퐵 = 푇−1퐴푇 Then, 퐵푦 = 휆푦 ⇒ 푇−1퐴푇푦 = 휆푦 ⇒ 퐴 푇푦 = 휆 푇푦 Similarity transformations preserve eigenvalues and eigenvectors are easily recovered Diagonal form Eigenvalues
    [Show full text]
  • Parallel Numerical Algorithms Chapter 5 – Eigenvalue Problems Section 5.2 – Eigenvalue Computation
    Basics Power Iteration QR Iteration Krylov Methods Other Methods Parallel Numerical Algorithms Chapter 5 – Eigenvalue Problems Section 5.2 – Eigenvalue Computation Michael T. Heath and Edgar Solomonik Department of Computer Science University of Illinois at Urbana-Champaign CS 554 / CSE 512 Michael T. Heath and Edgar Solomonik Parallel Numerical Algorithms 1 / 42 Basics Power Iteration QR Iteration Krylov Methods Other Methods Outline 1 Basics 2 Power Iteration 3 QR Iteration 4 Krylov Methods 5 Other Methods Michael T. Heath and Edgar Solomonik Parallel Numerical Algorithms 2 / 42 Basics Power Iteration Definitions QR Iteration Transformations Krylov Methods Parallel Algorithms Other Methods Eigenvalues and Eigenvectors Given n × n matrix A, find scalar λ and nonzero vector x such that Ax = λx λ is eigenvalue and x is corresponding eigenvector A always has n eigenvalues, but they may be neither real nor distinct May need to compute only one or few eigenvalues, or all n eigenvalues May or may not need corresponding eigenvectors Michael T. Heath and Edgar Solomonik Parallel Numerical Algorithms 3 / 42 Basics Power Iteration Definitions QR Iteration Transformations Krylov Methods Parallel Algorithms Other Methods Problem Transformations Shift : for scalar σ, eigenvalues of A − σI are eigenvalues of A shifted by σ, λi − σ Inversion : for nonsingular A, eigenvalues of A−1 are reciprocals of eigenvalues of A, 1/λi Powers : for integer k > 0, eigenvalues of Ak are kth k powers of eigenvalues of A, λi Polynomial : for polynomial p(t), eigenvalues
    [Show full text]
  • Dynamical Systems and Non-Hermitian Iterative Eigensolvers∗
    SIAM J. NUMER. ANAL. c 2009 Society for Industrial and Applied Mathematics Vol. 47, No. 2, pp. 1445–1473 DYNAMICAL SYSTEMS AND NON-HERMITIAN ITERATIVE EIGENSOLVERS∗ MARK EMBREE† AND RICHARD B. LEHOUCQ‡ Abstract. Simple preconditioned iterations can provide an efficient alternative to more elabo- rate eigenvalue algorithms. We observe that these simple methods can be viewed as forward Euler discretizations of well-known autonomous differential equations that enjoy appealing geometric prop- erties. This connection facilitates novel results describing convergence of a class of preconditioned eigensolvers to the leftmost eigenvalue, provides insight into the role of orthogonality and biorthog- onality, and suggests the development of new methods and analyses based on more sophisticated discretizations. These results also highlight the effect of preconditioning on the convergence and stability of the continuous-time system and its discretization. Key words. eigenvalues, dynamical systems, inverse iteration, preconditioned eigensolvers, geometric invariants AMS subject classifications. 15A18, 37C10, 65F15, 65L20 DOI. 10.1137/07070187X 1. Introduction. Suppose we seek a small number of eigenvalues (and the asso- ciated eigenspace) of the non-Hermitian matrix A ∈ Cn×n, having at our disposal a n×n n nonsingular matrix N ∈ C that approximates A. Given a starting vector p0 ∈ C , compute −1 (1.1) pj+1 = pj + N (θj − A)pj, where θj − A is shorthand for Iθj − A,and (Apj, pj) θj = (pj, pj) for some inner product (·, ·). Knyazev, Neymeyr, and others have studied this iteration for Hermitian positive definite A; see [21, 22] and references therein for convergence analysis and numerical experiments. Clearly the choice of N will influence the behavior of this iteration.
    [Show full text]