Calculate teraflops (TFLOPS) or instructions per second from core count, clock speed and work per cycle, or estimate task time from a processing rate.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Processing rate (FLOPS / TFLOPS) | Finds the theoretical peak rate of a processor in TFLOPS, GFLOPS or MFLOPS, or in instructions per second | Requires the number of cores, the clock speed and the work units per core cycle |
| Core count | Finds the number of cores that a rate implies | Requires the nominal processing rate, the clock speed and the work units per core cycle |
| Clock speed | Finds the clock speed that a rate implies | Requires the nominal processing rate, the number of cores and the work units per core cycle |
| Work per core cycle | Finds the FLOPs or instructions each core completes in one clock cycle | Requires the nominal processing rate, the number of cores and the clock speed |
| Task time | Finds how long a fixed amount of work takes | Requires the nominal processing rate and the total work units |
| Total work | Finds how much work is completed in a set time | Requires the nominal processing rate and the task time |
| Required nominal rate | Finds the rate needed to finish a fixed amount of work in a set time | Requires the total work units and the task time |
| Compare systems | Finds the ratio between the theoretical rates of two systems | Requires the cores, clock speed and work units per core cycle of System A and System B |
Work basis sets what is counted: floating-point operations, which give FLOPS, or instructions, which give instructions per second. Clock speed is in GHz, MHz or kHz. The work per cycle field suggests 2 FLOPs for a GPU shader core, 16 for a CPU core with AVX2 in double precision, 32 with AVX2 in single precision and 64 with AVX-512 in single precision. The three task functions also take a sustained rate as a percent of nominal, and a blank means 100%. Three presets fill in example numbers; they are arithmetic examples, not the specifications of a real chip.
Processing Power Formulas
| Rate | Work per second: FLOPS, or instructions per second |
| N | Number of cores |
| f | Clock speed (Hz, cycles per second) |
| W | Work units per core in one cycle: FLOPs, or instructions (IPC) |
Peak FLOPS is the clock frequency multiplied by the number of cores and by the floating-point operations each core can process in one cycle, and it can be worked out from hardware numbers without running a benchmark [1]. One teraFLOPS is 10¹² FLOPS and one gigaFLOPS is 10⁹. Where a processor has a fused multiply-add instruction, the multiply and the add each count as an operation [1].
Processing rate (FLOPS / TFLOPS)
The formula above applies directly. An 8-core CPU at 3.6 GHz doing 32 FLOPs per core cycle peaks at 8 × 3.6 × 10⁹ × 32 = 921.6 GFLOPS, or 0.9216 TFLOPS. A GPU with 5,120 cores at 1.5 GHz and 2 FLOPs per cycle peaks at 15.36 TFLOPS. On the instruction basis, 4 cores at 3.5 GHz averaging 2 instructions per cycle run 28 billion instructions per second, which is 28 GIPS, not 28 GFLOPS.
Core count
921.6 GFLOPS at 3.6 GHz and 32 FLOPs per cycle is 8 cores. Inputs that imply a fraction of a core are rejected.
Clock speed
921.6 GFLOPS from 8 cores at 32 FLOPs per cycle is 3.6 GHz.
Work per core cycle
921.6 GFLOPS from 8 cores at 3.6 GHz is 32 FLOPs per core cycle.
Task time
u is the sustained rate as a fraction of nominal. 10¹⁵ floating-point operations on a 921.6 GFLOPS system that sustains 50% take 10¹⁵ ÷ (460.8 × 10⁹) = 2,170 seconds, about 36 minutes.
Total work
921.6 GFLOPS sustained at 100% for one hour completes 921.6 × 10⁹ × 3,600 = 3.31776 × 10¹⁵ floating-point operations.
Required nominal rate
Finishing 10¹⁵ operations in 10 minutes at 80% of nominal needs 10¹⁵ ÷ (600 × 0.8) = 2.083 TFLOPS.
Compare systems
System A at 921.6 GFLOPS against System B with 4 cores at 3.2 GHz and 16 FLOPs per cycle, which is 204.8 GFLOPS, gives a ratio of 4.5, so A is 350% higher on paper.
Limits of This Estimate
- The result is a theoretical peak, not a benchmark. The rate a device reaches under a realistic workload is a separate, lower figure that has to be measured [1].
- Every core is assumed to be identical and fully busy on parallel work. Memory speed, scheduling, serial steps and clock speeds that drop under load all reduce real throughput.
- FLOPs per cycle depends on precision, vector width and the mix of instructions. The suggested values assume two fused multiply-add units per CPU core, for example 8 single-precision values × 2 units × 2 operations = 32 with AVX2. These estimates are based on the best available data and estimations.
- Instructions per cycle is not a FLOPs per cycle value. A rate worked out from IPC is in instructions per second and cannot be compared with a FLOPS figure.
Sources
- AMD, Understanding Peak, Max-Achievable and Delivered FLOPs, Part 1: peak FLOPS formula, counting of fused multiply-add, and the difference between peak and achievable rates
