GPU Compute Evaluation, Precision Trade-offs, and Capacity Planning
This article explains how to evaluate GPU compute as a relative metric rather than an absolute performance number. It covers the division between TFLOPS and TOPS, how numerical precision shapes theoretical peak throughput, how to estimate peak compute from hardware parameters, and why effective throughput matters more than paper specifications. It also provides a capacity planning checklist and common pitfalls to avoid when sizing GPU resources for training and inference.
1. Define the Boundaries First: Compute Is a Relative Metric, Not Absolute Performance
GPU compute describes the amount of computation completed per unit of time, and it is inherently a relative quantity. Conceptually, it is no different from CPU compute; the difference lies in architectural priorities for compute resources. CPUs use a small number of strong cores, large caches, and complex control logic to achieve low-latency general-purpose performance. GPUs use massive numbers of lightweight execution units, high-bandwidth memory, and minimal control logic to achieve high throughput. Therefore, whenever you discuss “compute,” you must specify three things: what computation is being performed, what numerical precision is used, and under what measurement convention (theoretical peak or measured effective value). Missing any one of these makes the numbers incomparable.
Traditionally, GPU compute has been measured primarily by floating-point capability. As neural network workloads have become widespread, integer operations and specific operations (OPS) have also entered the core set of metrics.
2. Two Core Metrics: The Roles of TFLOPS and TOPS
- TFLOPS (trillions of floating-point operations per second): Used for floating-point-intensive scenarios such as graphics rendering, scientific computing, and machine learning training. It is the most common metric for horizontal comparison.
- TOPS (trillions of operations per second): Closer to integer operations and multiply-accumulate operations in deep learning inference. It is a key metric for large-scale batch inference.
Note that the definition of an “operation” in TOPS is not consistent across architectures. Some count a single multiply-accumulate as one operation, while others count it as two. When comparing TOPS across architectures without confirming the counting rules, it is easy to get the illusion of a several-fold difference.
3. Precision Sets the Ceiling: The Strong Coupling Between Compute and Numerical Precision
GPU compute values are not fixed; they are closely tied to the numerical precision being executed. The common precision spectrum includes:
- Floating point: double precision FP64, single precision FP32 and TF32, half precision FP16 and BF16, and lower FP8 and FP4;
- Quantization: integer precisions such as INT8 and INT4.
The general rule is that lower precision yields a higher theoretical peak, at the cost of reduced numerical dynamic range and significant digits. The engineering implication is direct: FP64 targets high-precision scientific computing, FP32/TF32 is a compromise for training and general-purpose computing, and FP16/BF16 and INT8 appear more in training acceleration and inference deployment. Choosing a precision is not about “lower is better”; it depends on the model’s tolerance for numerical error and whether gradient underflow or post-quantization accuracy regression occurs.
4. Estimating Theoretical Peak: Method and Sample Code
The theoretical peak can be derived from hardware parameters, with the basic form:
Peak compute ≈ Number of execution units × Core frequency × Operations per unit per cycle
The “operations per unit per cycle” depends on the operation type and architectural design. For example, an FP32 multiply-accumulate is typically counted as 2 (one multiply, one add). The following illustrative parameters are for method demonstration only:
def peak_tflops(units: int, ghz: float, ops_per_cycle: int) -> float:"""units: number of execution units; ghz: core frequency (GHz); ops_per_cycle: operations per cycle"""return units * (ghz * 1e9) * ops_per_cycle / 1e12# Example: 4096 units, 1.8 GHz, FP32 multiply-accumulate counted as 2print(peak_tflops(4096, 1.8, 2)) # approximately 14.75 TFLOPS
If the architecture supports tensor acceleration units, their effective operations per cycle are far higher than those of general-purpose floating-point units. As a result, at the same frequency, low-precision peak values jump by multiples. This also explains why the nominal FP64, FP32, FP16, and INT8 values of the same card can differ by more than an order of magnitude.
5. From Paper to Measurement: Effective Compute Is the Basis for Decisions
The theoretical peak is the upper bound. What a business actually gets is effective compute, which is typically significantly lower than the peak. Losses come from memory bandwidth, data dependencies and synchronization, the degree of operator fusion, batch size and parallelism strategy, and communication overhead. The recommended validation path:
- Establish a baseline using the vendor’s published theoretical peak;
- Measure the achievable ratio with standard benchmark workloads such as matrix multiplication;
- Switch to a layered operator profile of the real model to identify whether the bottleneck is compute-bound or bandwidth-bound;
- Record throughput-latency curves under different batch size and precision combinations.
Illustrative calculation logic:
Effective compute = Theoretical peak × UtilizationRequired number of cards ≈ Per-card effective compute demand per second / (Per-card effective compute × Target utilization)
6. Capacity Planning Checklist
- Define the precision roadmap: mixed precision for training, low precision or quantization for inference, with a precision fallback plan reserved;
- Distinguish metric conventions: for training, look at TFLOPS and memory capacity/bandwidth; for inference, look at TOPS and per-request latency;
- Pay attention to supporting resources: high throughput requires matching storage throughput, message queues, container platform scheduling and logging services, and monitoring and alerting; otherwise compute will be blocked by data supply;
- Use elastic scaling to handle peaks and troughs, avoiding long-term occupation at peak levels;
- Establish evaluation baselines and retest periodically to prevent performance regression.
7. Common Pitfalls
First, directly comparing nominal values of different precisions; second, ignoring differences in TOPS counting rules; third, using theoretical peak for capacity commitments; fourth, looking only at compute without considering memory and bandwidth, leading to low utilization; fifth, overlooking the impact of thermal and power walls on sustained frequency. The correct way to use GPU compute is to treat it as a relative metric that must be annotated with precision, convention, and measurement conditions, and then combine it with measured effective compute to complete selection and planning.
