BLAS/LAPACK's Genesis: From Fortran to HPC Foundations

BLAS (1979) and LAPACK (1992) emerged from Fortran libraries like LINPACK and EISPACK, standardizing low-level (BLAS) and higher-level (LAPACK) linear algebra operations. Their design was crucial for exploiting modern computer architectures, including cache memory and instruction-level parallelism, leading to orders of magnitude faster performance than predecessors.

The top 3

  1. BLAS's Three Levels: From Vector to Matrix Power: The Basic Linear Algebra Subprograms (BLAS) evolved through three distinct levels: Level 1 (vector operations) emerged in the 1970s, followed by Level 2 (matrix-vector operations) in the mid-1980s, and crucially, Level 3 (matrix-matrix operations) in the late 1980s, which was designed to exploit CPU cache hierarchies for high performance in libraries like LAPACK.
  2. LAPACK's Birth: Revolutionizing LINPACK/EISPACK for Caches: LAPACK was conceived as the successor to the widely used LINPACK and EISPACK libraries, specifically to make their algorithms efficient on modern shared-memory vector and parallel processors. It achieved this by reorganizing computations to primarily use block matrix operations, effectively leveraging memory hierarchies and the Level 3 BLAS for orders of magnitude faster performance.
  3. Fortran's Enduring Foundation: BLAS/LAPACK's "Transportable" Speed: Both BLAS and LAPACK were originally developed in Fortran (FORTRAN 77 for early versions, LAPACK moved to Fortran 90 in 2008), leveraging its historical strength in scientific computing. Their design philosophy emphasized "transportability" over pure portability, meaning they relied on highly optimized, machine-specific BLAS implementations provided by hardware vendors to achieve peak performance on diverse high-performance computing (HPC) architectures.

Sources

Open the full topic