← All projects
Project record1 mention
Originally shared on Hacker News

Why Compilers Rarely Use Strassen's Algorithm

This article examines why compilers rarely use Strassen's algorithm for matrix multiplication, part of the author's research into matmul algorithms and their hardware implementations as groundwork toward starting a hardware startup.

Last shared
01 / The problem

What it addresses

Despite faster alternatives existing, the naive O(n^3) matrix multiplication algorithm is what everyone uses, as compilers rarely adopt Strassen's algorithm.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Why Compilers Rarely Use Strassen's Algorithm

    This article examines why compilers rarely use Strassen's algorithm for matrix multiplication, part of the author's research into matmul algorithms and their hardware implementations as groundwork toward starting a hardware startup.

    Problem: Despite faster alternatives existing, the naive O(n^3) matrix multiplication algorithm is what everyone uses, as compilers rarely adopt Strassen's algorithm.

    Posted by @muragekibicho · Original source ↗

    Source text · @muragekibicho · · Source ↗

    I was looking at matmul algorithms and their hardware implementations (to start a hardware startup) and I saw that the naive O(n^3) version is what everyone uses. https://leetarxiv.substack.com/p/why-compilers-rarely-use-strassens-algorithm