Bookmarks

FLOPS — floating-point operations per second

A measure of processor or GPU performance: how many floating-point arithmetic operations it performs per second.

Also: flops, flop/s, TFLOPS, PFLOPS

checked 9 Nov

All terms

FLOPS is the primary measure of peak processor and GPU performance: it is the figure to look at when comparing compute chips and planning compute clusters. Specifications quote the numbers with SI prefixes: megaflops (MFLOPS), gigaflops (GFLOPS), teraflops (TFLOPS), petaflops (PFLOPS).

How it is calculated

Peak performance is a theoretical figure: clock speed is multiplied by the number of compute units and by the number of operations each unit performs per cycle. Real-world speed is lower and depends on memory, networking and the program: real running time cannot be calculated from FLOPS alone.

PrefixValue
MFLOPSone million operations per second
GFLOPSone billion (10⁹) operations per second
TFLOPSone trillion (10¹²) operations per second
PFLOPSone quadrillion (10¹⁵) operations per second

Precision changes the number

Floating-point numbers are stored in formats of different widths: FP64 is 64 bits, FP32 is 32, FP16 is 16, and FP8 and FP4 have appeared in recent generations of accelerators. The shorter the format, the more such numbers the compute units process per cycle, so the same card delivers different peak values for different formats — a difference of tens or hundreds of times.

FormatH200 SXM, TFLOPS
FP6434 (67 with tensor cores)
FP3267
TF32989
BF16 and FP161979
FP83958

Tensor core values are quoted with sparsity taken into account: zero elements are skipped, and the peak with sparsity is twice the dense one.

Where it is used

  • choosing a GPU or processor for compute workloads: model training, simulation, rendering
  • planning cluster capacity and estimating training time from a known number of operations
  • comparing supercomputers: the TOP500 ranking sorts systems by their Rmax figure — the result of the Linpack benchmark in FLOPS on double-precision numbers

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • IOPSinput/output operations per second

    IOPS counts input/output operations on disks and arrays, while FLOPS counts arithmetic on numbers in a processor or GPU.

  • FP8 and FP4 formats

    FP8 and FP4 are formats for storing numbers; the width of the format determines how many FLOPS a card delivers for it.

In depth in the references

where the topic is covered in detail