Beyond Time Complexity: Data Movement Complexity Analysis for Matrix Multiplication

03/04/2022
by   Wesley Smith, et al.
0

Data movement is becoming the dominant contributor to the time and energy costs of computation across a wide range of application domains. However, time complexity is inadequate to analyze data movement. This work expands upon Data Movement Distance, a recently proposed framework for memory-aware algorithm analysis, by 1) demonstrating that its assumptions conform with microarchitectural trends, 2) applying it to six variants of matrix multiplication, and 3) showing it to be capable of asymptotically differentiating algorithms with the same time complexity but different memory behavior, as well as locality optimized vs. non-optimized versions of the same algorithm. In doing so, we attempt to bridge theory and practice by combining the operation count analysis used by asymptotic time complexity with per-operation data movement cost resulting from hierarchical memory structure. Additionally, this paper derives the first fully precise, fully analytical form of recursive matrix multiplication's miss ratio curve on LRU caching systems. Our results indicate that the Data Movement Distance framework is a powerful tool going forward for engineers and algorithm designers to understand the algorithmic implications of hierarchical memory.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/05/2018

Simple, Fast and Practicable Algorithms for Cholesky, LU and QR Decomposition Using Fast Rectangular Matrix Multiplication

This note presents fast Cholesky/LU/QR decomposition algorithms with O(n...
research
09/12/2023

The Time Complexity of Fully Sparse Matrix Multiplication

What is the time complexity of matrix multiplication of sparse integer m...
research
05/09/2020

Time complexity of in-memory solution of linear systems

In-memory computing with crosspoint resistive memory arrays has been sho...
research
05/09/2020

In-memory eigenvector computation in time O(1)

In-memory computing with crosspoint resistive memory arrays has gained e...
research
04/11/2019

The MOMMS Family of Matrix Multiplication Algorithms

As the ratio between the rate of computation and rate with which data ca...
research
12/23/2022

Optimizing the half-gcd algorithm

In this paper, we propose a carefully optimized "half-gcd" algorithm for...

Please sign up or login with your details

Forgot password? Click here to reset