Compiler blockability of dense matrix factorizations

Author:

Carr Steve1,Lehoucq R. B.2

Affiliation:

1. Michigan Technological Univ., Houghton

2. Argonne National Lab, Argonne, IL

Abstract

The goal of the LAPACK project is to provide efficient and portable software for dense numerical linear algebra computations. By recasting many of the fundamental dense matrix computations in terms of calls to an efficient implementation of the BLAS (Basic Linear Algebra Subprograms), the LAPACK project has, in large part, achieved its goal. Unfortunately, the efficient implementation of the BLAS results often in machine-specific code that is not portable across multiple architectures without a significant loss in performance or a significant effort to reoptimize them. This article examines wheter most of the hand optimizations performed on matrix factorization codes are unnecessary because they can (and should) be performed by the compiler. We believe that it is better for the programmer to express algorithms in a machine-independent form and allow the compiler to handle the machine-dependent details. This gives the algorithms portability across architectures and removes the error-prone, expensive and tedious process of hand optimization. Although there currently exist no production compilers that can perform all the loop transformations discussed in this article, a description of current research in compiler technology is provided that will prove beneficial to the numerical linear algebra community. We show that the Cholesky and optimized automaticlaly by a compiler to be as efficient as the same hand-optimized version found in LAPACK. We also show that the QR factorization may be optimized by the compiler to perform comparably with the hand-optimized LAPACK version on modest matrix sizes. Our approach allows us to conclude that with the advent of the compiler optimizations dicussed in this article, matrix factorizations may be efficiently implemented in a BLAS-less form

Publisher

Association for Computing Machinery (ACM)

Subject

Applied Mathematics,Software

Reference35 articles.

1. Automatic translation of FORTRAN programs to vector form

2. ANDERSON E. BAI Z. BISCHOF C. H. DEMMEL J. DONGARRA J. J. Du CROZ J. GREENBAUM A. HAMMARLING S. MCKENNEY A. OSTROUCHOV S. AND SORENSEN D.C. 1995. LAPACK User's Guide. 2nd ed. Society for Information Management and The Management Information Systems Minneapolis MN. ANDERSON E. BAI Z. BISCHOF C. H. DEMMEL J. DONGARRA J. J. Du CROZ J. GREENBAUM A. HAMMARLING S. MCKENNEY A. OSTROUCHOV S. AND SORENSEN D.C. 1995. LAPACK User's Guide. 2nd ed. Society for Information Management and The Management Information Systems Minneapolis MN.

3. BILMES J. ASANOVIC K. DEMMEL J. LAM D. AND CHIN C.W. 1996. PHiPAC" A portable high-performance ANSI C coding methodology and its application to matrix multiply. LAPACK Working Note 111 University of Tennessee Knoxville TN. BILMES J. ASANOVIC K. DEMMEL J. LAM D. AND CHIN C.W. 1996. PHiPAC" A portable high-performance ANSI C coding methodology and its application to matrix multiply. LAPACK Working Note 111 University of Tennessee Knoxville TN.

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A new code transformation technique for nested loops;Computer Science and Information Systems;2014

2. A High Performance and Memory Efficient LU Decomposer on FPGAs;IEEE Transactions on Computers;2012-03

3. A Matrix-Type for Performance–Portability;Applied Parallel Computing. State of the Art in Scientific Computing;2006

4. Recursive Blocked Algorithms and Hybrid Data Structures for Dense Matrix Library Software;SIAM Review;2004-01

5. Fractal symbolic analysis;ACM Transactions on Programming Languages and Systems;2003-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3