Floating point operations per second (FLOPS, flops or flop/s) is a measure of computer performance or compute in computing, useful in fields of scientific computations that require floating-point calculations. For cases focused on numerical calculation, it is often a more relevant measure than instructions per second.
FLOPS versus FLOP FLOPS and FLOP can have distinct meanings:
FLOPS (or FLOP/s) measures the rate of computation: floating-point operations per second. FLOP measures the total number of floating-point operations For example, the European AI Office uses FLOP as the number of operations when explaining the EU AI Act's training-compute threshold of 1025 floating-point operations. However, usage is not uniform: flop and prefixed forms such as petaflop are also used as names for rate units. In 2023, numerical analyst Nicholas Higham noted that general dictionaries differ in spelling, capitalization, and whether a term denotes a rate of computation or a number of floating-point operations.
Floating-point arithmetic
Floating-point arithmetic is needed for very large or very small real numbers, or computations that require a large dynamic range. Floating-point representation is similar to scientific notation, except computers use base two (with rare exceptions), rather than base ten. The encoding scheme stores the sign, the exponent (in base two for Cray and VAX, base two or ten for IEEE floating point formats, and base 16 for IBM Floating Point Architecture) and the significand (number after the radix point). While several similar formats are in use, the most common is ANSI/IEEE Std. 754-1985. This standard defines the format for 32-bit numbers called single precision, as well as 64-bit numbers called double precision and longer numbers called extended precision (used for intermediate results). Floating-point representations can support a much wider range of values than fixed-point, with the ability to represent very small numbers and very large numbers.
Dynamic range and precision The exponentiation inherent in floating-point computation assures a much larger dynamic range – the largest and smallest numbers that can be represented – which is especially important when processing data sets where some of the data may have extremely large range of numerical values or where the range may be unpredictable. As such, floating-point processors are ideally suited for computationally intensive applications.
Computational performance FLOPS and MIPS are units of measure for the processing speed of a computer. Floating-point operations are typically used in fields such as scientific computational research, as well as in machine learning. However, before the late 1980s floating-point hardware (it's possible to implement FP arithmetic in software over any integer hardware) was typically an optional feature, and computers that had it were said to be "scientific computers", or to have "scientific computation" capability. Thus the unit MIPS was useful to measure integer performance of any computer, including those without such a capability, and to account for architecture differences, similar MOPS (million operations per second) was used as early as 1970 as well. Note that besides integer (or fixed-point) arithmetics, examples of integer operation include data movement (A to B) or value testing (If A = B, then C). That's why MIPS as a performance benchmark is adequate when a computer is used in database queries, word processing, spreadsheets, or to run multiple virtual operating systems. In 1974 David Kuck used the term megaflops for the description of numerical performance measured by the number of floating-point calculations performed per second. Kuck argued that a single "instruction" can vary widely across machines, from a simple indexing step to a full vector inner product. He said that millions of operations per second (MOPS) became more reasonable as machine designs diverged, but he argued that for many numerical calculations logical operations and shifts are "overhead" so that millions of floating-point operations per second (megaflops) may be the more important measure.
FLOPS on an HPC-system can be calculated using this equation:
FLOPS=racks×nodesrack×socketsnode×coressocket×cyclessecond×FLOPscycle. This can be simplified to the most common case: a computer that has exactly 1 CPU:
FLOPS=cores×cyclessecond×FLOPscycle. FLOPS can be recorded in different measures of precision, for example, the TOP500 supercomputer list ranks computers by 64-bit (double-precision floating-point format) operations per second, abbreviated to FP64. Similar measures are available for 32-bit (FP32) and 16-bit (FP16) operations.
Floating-point operations per clock cycle for various processors
Performance records
… excerpt ends here. Continue reading the full article.
