← Mathematical compendium

Published equation contexts

Igemm=2mnks (mk+kn+mn)I_{\mathrm{gemm}} = \frac{2mnk}{s\,(mk + kn + mn)}

Why this formula appears here

Multiplying an m ×\times k matrix by a k ×\times n matrix performs 2mnk floating-point operations while touching mk + kn + mn elements. If each element occupies s bytes, the ratio of work done to bytes moved is Igemm=2mnks (mk+kn+mn)I_{\mathrm{gemm}} = \frac{2mnk}{s\,(mk + kn + mn)}. which for large square matrices grows in proportion to the dimension. Double the matrix size and you roughly double the work performed per byte fetched. Almost nothing else in general-purpose computing behaves this way, and it is the entire economic basis for building a machine around one operation.

Read the full article-specific guide →

Read the representative guide

s (mk+kn+mn)s\,(mk + kn + mn)

Denominator: s(mk + kn + mn)

The complete quantity below the fraction bar; it must be nonzero for this division.

Read this term in its guide →

How to interpret it

With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.

Research cited beside this formula

Published contexts (1)

A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.

Igemm=2mnks (mk+kn+mn),I_{\mathrm{gemm}} = \frac{2mnk}{s\,(mk + kn + mn)},

Equation 6 · AI Hardware & Semiconductors

What an AI Accelerator Actually Is: Silicon, Packaging, and the Memory It Can Reach

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions.

Multiplying an m ×\times k matrix by a k ×\times n matrix performs 2mnk floating-point operations while touching mk + kn + mn elements. If each element occupies s bytes, the ratio of work done to bytes moved is Igemm=2mnks (mk+kn+mn)I_{\mathrm{gemm}} = \frac{2mnk}{s\,(mk + kn + mn)}. which for large square matrices grows in proportion to the dimension. Double the matrix size and you roughly double the work performed per byte fetched. Almost nothing else in general-purpose computing behaves this way, and it is the entire economic basis for building a machine around one operation.

Meanings in this article

  • IgemmI_{\mathrm{gemm}}: the ratio of work done to bytes moved.
  • mm: the number of rows in the first matrix.
  • nn: the number of columns in the second matrix.
  • kk: the shared inner dimension: columns in the first matrix and rows in the second.
  • ss: bytes occupied by each element.
Equation guide → · Article →