AI Hardware & Software Stack

For the product of two N × N FP16 (2-byte) matrices, assuming each input is read once and the result written once, roughly what is the arithmetic intensity (operations per byte)?

  1. A1/3
  2. BN/3
  3. C3N
Show answer and explanation

Answer: B. N/3

The operation count is 2N³, and memory traffic is 3N² elements for the three matrices, or 6N² bytes in FP16. Arithmetic intensity is2N36N2=N32N³ ÷ 6N² = N/3, about 340 for N = 1024. The larger a matrix product, the more computation per byte, so it easily exploits arithmetic performance. By contrast, element-wise addition has intensity below 1 and is limited by memory bandwidth.

  • A. It grows in proportion to N.
  • B. Correct. 2N³ ÷ 6N² = N/3.
  • C. That overestimates the operation count.