Why AI Infra Teams Still Need GPU Kernel Engineers
As automated compilers and AI agents become increasingly capable of generating GPU kernel code, questions arise about the necessity of dedicated GPU kernel engineers. However, in the era of large language models, hardware utilization dictates the massive costs of training and inference. This article explores why human kernel engineers remain indispensable, examining key performance metrics like SOL (Speed of Light) and MFU (Model FLOPs Utilization), the nuances of kernel fusion optimization, and the current limitations of AI agents in handling complex, system-level engineering tasks.
1. The Question: Are Kernel Engineers Still Valuable Amidst Strong Automation?
In the era of large models, AI Infra teams continue to actively recruit GPU Kernel engineers. A common question from outside the field is: since compilers, code generation tools, and even AI Agents can now automatically generate a substantial amount of kernel code, why is heavy human investment still required in kernel development?
To answer this, we must understand a core fact: once the model is determined, the cost of inference and training is almost entirely dictated by hardware utilization. With the same model and the same GPU cluster, the cost difference between a kernel that maximizes hardware usage and one that does not can be several-fold. In large-scale model training and inference scenarios involving thousands of GPUs, every bit of efficiency saved translates directly to significant financial savings. “Maximizing hardware usage” is precisely the part that current automated tools struggle to accomplish independently.
2. The Yardstick for Kernel Quality: SOL and MFU
2.1 What is SOL (Speed of Light)?
SOL, commonly referred to as “light speed,” is a universal concept in kernel development for measuring performance ceilings. Its calculation is highly intuitive:
SOL = max(Total Compute / Peak Compute, Total Memory Access / Memory Bandwidth)
The execution time of a kernel has two theoretical lower bounds:
- Compute bound: The minimum time required to complete all FLOPs, even if the compute units operate at full capacity.
- Bandwidth bound: The minimum time required to move all data, even if the memory bandwidth is fully saturated.
The larger of the two represents the theoretical shortest execution time for that kernel on a given piece of hardware. The goal of an excellent kernel is to bring the actual execution time infinitely close to this lower bound, meaning the SOL score approaches 1. This indicates that both the compute units and memory channels are fully utilized, with no idle hardware wastage.
2.2 MFU: A System-Level Perspective
Besides SOL, the industry frequently uses MFU (Model FLOPs Utilization)—the ratio of actual computational throughput to theoretical peak compute—to measure hardware utilization. Unlike SOL, which focuses on individual kernels, MFU reflects the final outcome of the entire “model + implementation + hardware” system.
MFU also carries an easily overlooked value: it indirectly reflects whether the hardware’s compute-to-bandwidth ratio is balanced. If the MFU for a certain type of model on specific hardware is consistently low, the problem may not lie in the software implementation, but rather in a mismatch between the hardware’s Roofline design and the memory/compute characteristics of that model. This serves as a crucial reference for chip selection and model-hardware co-design.
2.3 A Typical Example: Fusion Optimization
Take a common computation in large models as an example: performing a linear projection on attention outputs and then adding it to a residual. A naive implementation would first execute a matrix multiplication (matmul) and then perform an element-wise addition with the residual. These two operations correspond to two full memory read/write cycles.
The optimization approach is to fuse the matmul and the residual addition into a single kernel. The output blocks of the matrix multiplication are directly added to the residual in on-chip registers or shared memory, and then written back to memory all at once. This prevents intermediate results from hitting global memory, saving an entire round of read/write bandwidth while increasing the time data resides in the compute units. This type of fusion technique is a quintessential snapshot of a kernel engineer’s daily work.
3. Can AI Agents Replace Kernel Engineers?
With the advancement of code generation capabilities, many have attempted to let AI Agents write GPU Kernels directly, and specialized benchmarks have even emerged to evaluate Agent kernel development skills. Based on public practices, the conclusions can be summarized in three points:
1. Agents perform stunningly well on simple kernels. For structurally regular and mature pattern kernels (such as common element-wise operations and standard matrix multiplications), Agents can indeed produce well-performing kernels with appropriately tuned prompts, sometimes matching human optimization levels in certain scenarios.
2. There remains a significant gap on complex kernels. What truly differentiates performance are kernels involving complex dependency relationships, irregular memory access patterns, and tradeoffs among multiple parallelization strategies—such as attention mechanism variants, routing and aggregation in MoE, and KV cache management for long sequences. Optimizing these scenarios requires an in-depth understanding of hardware microarchitecture (e.g., warp scheduling, bank conflicts, L2 cache behavior) and often necessitates an iterative loop of “profiling → hypothesis → rewriting → validation.” Current Agents are still unstable when handling these long-chain, strongly feedback-dependent tasks.
3. The engineering context is even more critical. Kernels in production environments do not run in isolation. They must be embedded into operator libraries, interface with compilers, adapt to multiple GPU types and precisions, handle numerical stability edge cases, and maintain cross-version compatibility. These system engineering capabilities represent the core value of kernel engineers beyond simply “writing a fast kernel.”
4. Conclusion: The Evolving Division of Labor Between Humans and Tools
Returning to the original question: why are AI Infra teams still heavily recruiting GPU Kernel Engineers? The answer is that the last mile toward an SOL score of 1 requires deep hardware understanding, systematic model cognition, and engineering iteration capabilities. Agents are taking over more and more minor coding tasks, freeing engineers from repetitive labor to tackle harder fusion strategies, more extreme bandwidth squeezing, and more systematic performance tuning.
In other words, the advancement of tools has not eliminated this role; rather, it has raised its ceiling. Kernel engineers who can master automated tools while understanding underlying hardware are becoming increasingly rare and important.
