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.

The top 3

  1. LAPACK's Block Algorithm Advantage: LAPACK revolutionized performance by reorganizing algorithms to use block matrix operations, heavily leveraging Level 3 BLAS for better cache utilization and reduced data movement on modern CPUs.
  2. Orders of Magnitude Faster Than Predecessors: LAPACK can be "orders of magnitude faster" than LINPACK on cache-based architectures, with some operations in MATLAB seeing up to an "eight times faster" speedup for large matrices.
  3. Solving LINPACK/EISPACK's Cache Bottleneck: LINPACK and EISPACK were inefficient on modern machines because their memory access patterns ignored multi-layered memory hierarchies, leading to excessive data movement; LAPACK specifically addressed this.

Sources

Open the full topic