Why AI Infra Teams Still Need GPU Kernel Engineers
AI can generate correct kernel code, so why do AI Infra teams keep hiring GPU Kernel engineers? This article explains why operator engineering is about pushing hardware toward its physical limits, not just producing correct results. It walks through the SOL and MFU performance metrics, the value of kernel fusion, why optimal implementations shift with each hardware generation, how throughput gains translate into cost savings, the skills these engineers need, and practical advice for getting started and avoiding common pitfalls.
In recent years, intelligent coding tools, domain-specific languages, and automated tuning solutions have advanced rapidly, making operator writing look increasingly “automated.” Yet an interesting pattern persists: within AI Infra teams, the GPU Kernel engineer remains a role that shows up again and again. The reason isn’t that AI can’t produce runnable code. It’s that operator engineering is not really about “can it compute the right answer,” but about “can it run close to the physical limit on a given piece of hardware.”
1. What Are SOL and MFU? How Do You Calculate the Operator Performance Ceiling?
The core goal of operator optimization is not simply to implement a mathematical function, but to approach the physical limit of the hardware. The industry commonly measures this with two metrics: SOL and MFU.
The first metric is SOL (Speed-of-Light). The idea is straightforward: any operator is limited either by compute or by memory bandwidth. Take the slower of the two, and that gives you the theoretical upper bound.
T_SOL = max( total FLOPs / peak compute, total memory bytes / peak bandwidth )SOL utilization = T_SOL / actual time
A note on convention: this article uses a 0-to-1 “utilization” scale. That means:
- If actual time exactly equals T_SOL, then SOL = 1, meaning the theoretical limit is fully saturated;
- If actual time is greater than T_SOL, then SOL < 1, and the lower the value, the farther you are from the hardware ceiling;
- Some sources may use different names, such as “percent of peak” or “throughput relative to the theoretical limit,” so readers should interpret the numbers according to the specific convention.
The two terms in T_SOL represent:
total FLOPs / peak compute: assuming compute is fully utilized, how long computation alone would take at minimum;total memory bytes / peak bandwidth: assuming bandwidth is saturated, how long data movement alone would take at minimum;- Taking the maximum of the two means that a good kernel must keep both the compute units and the memory channels busy, rather than letting them wait on each other.
This also brings up a key concept: arithmetic intensity, which can be roughly understood as:
arithmetic intensity = total FLOPs / total memory bytes
If arithmetic intensity is low, each byte moved corresponds to very little computation, so the operator is easily memory-bandwidth-bound. If arithmetic intensity is high, the computation is relatively larger than the data movement, so the operator is more likely to be compute-bound. This idea is closely related to the roofline model.
The second metric is MFU (Model FLOPs Utilization):
MFU = actual effective FLOPs throughput / hardware peak FLOPs throughput
The significance of MFU is that it treats “model structure + operator implementation + hardware configuration” as a whole. Because real hardware bandwidth is constrained by memory hierarchy levels such as registers, shared memory, L2, and HBM, a low MFU often isn’t because compute is insufficient, but because the compute units aren’t being fed enough data.
For example, assume a fixed model structure and fixed hardware, where the theoretical minimum compute time for a training step is 2.0 seconds and the measured time is 4.0 seconds:
MFU = 2.0 / 4.0 = 50%
If operator optimization brings the time down to 2.5 seconds, then:
MFU = 2.0 / 2.5 = 80%
These numbers are illustrative, meant to build quantitative intuition. Actual MFU varies with the model, hardware, precision, parallelism strategy, and operator implementation.
2. Why Isn’t a “Working” Operator Enough? How Good Is Good Enough?
Intelligent coding tools can indeed quickly produce a functionally correct kernel. But “correct” is only a passing grade. Going from “correct results” to “close to the SOL ceiling” involves a large amount of judgment that depends on hardware details.
A typical example is attention output projection plus residual:
# Naive implementation: matmul and residual add in two steps, intermediate result repeatedly read from and written to memoryhidden = matmul(x, weight) # result written back to memory firstoutput = hidden + residual # then read back from memory, added element-wise, written back again
The key problem with this approach is that the intermediate tensor hidden is written fully to HBM and then read back, creating extra memory round-trips. A well-designed fused kernel can complete “matmul + residual add” inside the same kernel, keeping the intermediate result in on-chip cache or registers as much as possible:
# Fusion approach: do the "multiply + add" in a single kernel to keep the intermediate result off memoryoutput = fused_matmul_residual(x, weight, residual)
Here’s a comparison of the two approaches:
| Approach | Intermediate result in memory | HBM round-trips | Memory traffic | Expected SOL |
|---|---|---|---|---|
| Naive two-step implementation | Yes | hidden written once, read back once |
Higher | Lower in memory-bound scenarios |
| Fused implementation | No | No separate round-trip for the intermediate result | Lower | Usually higher, but depends on operator size |
Keep in mind that fusion isn’t an unconditional win. If the operator is very small, kernel launch overhead and synchronization overhead may matter more than memory access. If the operator itself does a lot of computation, the benefit from fusion depends more on whether arithmetic intensity is high enough. So what’s truly valuable isn’t an implementation that “sounds very fused,” but judging where the benefit actually comes from based on measured data.
Beyond fusion, GPU kernel optimization involves a series of tightly coupled problems:
- Memory coalescing and bank conflicts: whether thread access patterns are contiguous and whether shared memory has conflicts directly affect actual bandwidth;
- Overlapping compute and memory access: whether async copy and multi-stage pipelining can hide memory latency underneath computation;
- Tensor Core and data type selection: whether to use matrix acceleration units, and whether to use FP16, BF16, FP8, or INT8, greatly affects throughput;
- Tiling and blocking strategy: the block size must simultaneously fit register pressure, shared memory capacity, and the on-chip cache hierarchy;
- Warp-level scheduling and occupancy: how to balance register usage and thread block size to raise occupancy without sacrificing per-thread efficiency.
These problems often trade off against one another: you fix one and break another. For example, increasing occupancy may worsen bank conflicts; enlarging the tile may exceed shared memory capacity; reducing register pressure may increase redundant computation. Automated tools usually produce a “locally reasonable” implementation, but making global trade-offs under multi-dimensional constraints still requires the engineer’s deep understanding of the hardware architecture.
3. Why Does the Optimal Implementation Change After a Hardware Upgrade?
Kernel optimization is never a one-time effort. Hardware platforms keep evolving: new GPU architectures, new memory hierarchy levels, new acceleration units, and newer data-center accelerators all change the definition of “optimal implementation.”
The same operator code may need completely different tiling strategies, data types, pipeline depths, and synchronization methods across different hardware generations. A kernel that performed well on the previous-generation GPU won’t necessarily remain the best version on a new architecture.
On top of that, large-model inference and training are highly sensitive to performance. Once the model structure is fixed, every bit of compute the inference framework can save translates directly into real service capacity and cost advantage. Most teams report that, with a fixed model and fixed hardware, whether performance can be “maxed out” ultimately comes down to how well the underlying operators are optimized. This “last mile” work is still hard for automation tools to take over completely; it requires engineers to repeatedly measure, profile bottlenecks, and iterate on tuning for specific hardware.
4. How Does Operator Optimization Turn Into Money? How Do You Do the Cost Math?
From a business standpoint, this is easier to see. The compute cost of serving large models at scale is substantial, and every point of operator performance improvement, multiplied across massive request volumes and cluster sizes, becomes enormous resource savings.
Here’s an illustrative example: suppose a core operator improves SOL from 0.7 to 0.9 through fusion and tuning. The numbers here are illustrative, not measured. With a fixed model, fixed hardware, and all other conditions unchanged, the throughput gain is roughly:
0.9 / 0.7 ≈ 1.286
That’s about a 28% throughput improvement.
This can translate into several kinds of benefits:
- In inference serving, it may mean fewer serving nodes and lower per-request cost;
- In training, the same wall-clock time can train a larger model or run more experiments;
- In resource-constrained environments, the same hardware can support higher concurrency or longer context lengths.
Of course, real-world benefits must be measured against the specific model, hardware, parallelism strategy, and online serving metrics. Operator optimization isn’t just about a single kernel’s SOL; you also have to look at end-to-end latency, throughput, memory usage, stability, and deployment complexity.
5. What Skills Do GPU Kernel Engineers Need?
Overall, what’s genuinely scarce in this role is a “hardware-plus-software” composite skill set, which breaks down into several layers:
- Deep understanding of architecture: familiarity with the memory hierarchy, memory coalescing, instruction pipelining, Tensor Cores, cache behavior, and synchronization overhead;
- Numerical and parallel-computing fundamentals: understanding the computational characteristics and parallel mapping of core operators like matmul, reduction, attention, normalization, and activation functions;
- Bottleneck analysis ability: proficiency with performance analysis tools to determine whether the limit is memory-bound, compute-bound, or scheduling-bound;
- Ability to work with automation tools: treating intelligent coding tools as drafting assistants rather than the endpoint, and using domain knowledge to review, correct, and push toward the limit.
Here’s a simple table for judging “memory-bound vs. compute-bound”:
| Observed signal | More likely bottleneck | Common optimization actions |
|---|---|---|
| Memory throughput near peak, compute throughput not high | Memory-bound | Coalesce accesses, reduce HBM round-trips, fuse operators, optimize data layout |
| Compute or Tensor Core throughput high, memory throughput not high | Compute-bound | Check data types, tile size, instruction pipelining, matmul strategy |
| Both low, but latency is high and utilization is low | Scheduling, occupancy, launch overhead, or synchronization issues | Check occupancy, registers, shared memory, kernel launch, sync points |
| Small operators perform poorly, large operators perform fine | Launch overhead may dominate | Reduce kernel count, fuse small operators, use CUDA Graph, etc. |
| Performance curves differ greatly across data sizes | Tiling strategy may not fit | Re-set the tile, adjust grid/block, optimize boundary handling |
On the tooling side, it helps to focus on:
- NVIDIA Nsight Compute / ncu: for analyzing a kernel’s bottleneck type, memory efficiency, compute throughput, and warp scheduling;
- NVIDIA Nsight Systems: for viewing the overall timeline, gaps between kernels, and communication/compute overlap;
- Triton / CUTLASS: suited for operator development and templated implementation at different levels;
- Roofline analysis: using arithmetic intensity together with hardware peak compute/bandwidth to quickly decide which direction to optimize.
6. How to Get Started and Avoid Pitfalls? Common GPU Kernel Engineer Questions
Q: AI tools can already generate operators, so why do we still need GPU Kernel engineers?
A: AI tools greatly improve the efficiency of going “from idea to runnable code,” but the hard part of operator optimization is hardware detail, bottleneck localization, and long-term tuning. A tool can draft, but judging “where the bottleneck is, why to change it this way, and whether the benefit is real” still requires the engineer’s expertise.
Q: How should a GPU Kernel engineer get started?
A: Start with basic operators: get it right first, then make it fast. You can begin with Triton to write simple operators like vector add, reduction, and matmul, then gradually move into CUDA or CUTLASS. After each version, ask three questions: What is the SOL? Is the bottleneck memory or compute? What overhead can the next version reduce?
Q: What are the common misconceptions?
A: Common ones include: only looking at correctness and not performance; only looking at occupancy and not memory efficiency; ignoring data types and hardware acceleration units; ignoring the launch overhead of small operators; and tuning by feel without profiling.
Q: Should I learn CUDA or Triton first?
A: If the goal is to quickly build intuition for GPU performance, Triton is more approachable. If you want to do extreme low-level optimization and understand the details of threads, warps, and shared memory, CUDA is still important. Over the long term, it’s best to combine both: use high-level tools for efficiency and low-level knowledge for bottleneck judgment.
Q: How do I tell whether an operator is worth optimizing further?
A: You can estimate its share of end-to-end time. If an operator accounts for only a small fraction of total runtime, further optimization may yield limited returns. If it’s a high-frequency hotspot in the model—such as matmul, attention, normalization, or communication fusion—then its optimization value is usually higher.
Conclusion
The claim “AI can write kernels” is not wrong, but it mainly solves the problems of “correctness” and “fast drafting.” The reason AI Infra still needs a large number of GPU Kernel engineers is that every bit of gain—from correct to extreme, from general to hardware-specific, from local to global, from saving a little to saving a lot—depends on a human’s deep understanding of hardware and continuous tuning.
Tools will keep getting stronger, but turning hardware’s physical limits into a business cost advantage still can’t be done without professional kernel engineers in the near term. Tools replace repetitive labor; they amplify genuine professional judgment.
