Can LLMs Replace Manual Development of Low-Level Chip Kernels?
This article assesses whether large language models can automate low-level kernel code generation for heterogeneous chips. It reviews a recent validation effort, examines performance gaps and implications for GPU software ecosystems, and provides practical criteria for evaluating automated chip adaptation, including operator coverage, benchmarking, correctness testing, debugging, and maintenance.
Conclusion first: large language models can already automatically generate most low-level kernel code within specific scopes, but they cannot replace complete chip software adaptation work. Before evaluating such tools, enterprises should clarify which operators the generated code covers, how performance gaps are measured, and who is responsible for debugging and stability.
Why Heterogeneous Chip Adaptation Is Difficult
To run large models efficiently on a given chip, low-level kernel code is needed to schedule hardware resources and determine how data flows inside the processor. This type of code maps directly to the hardware instruction set and serves as the bridge between upper-layer algorithm frameworks and physical compute.
Historically, this work has mainly been done manually. Engineers had to study lengthy hardware architecture manuals and write code segment by segment against the instruction set. A small error in memory management or concurrency logic could crash the program or sharply reduce performance. As a result, changing chips often meant a team investing months of work. This migration cost is one reason mainstream GPU software ecosystems have remained sticky.
What Recent Technical Validation Shows
Recently, an AI research organization published test results. It used a preview large language model to conduct low-level adaptation experiments for a new-generation high-performance computing chip. In the tests, the model read hardware architecture materials and attempted to complete instruction translation and code writing autonomously, with limited manual intervention.
According to reports, the tool generated most of the low-level kernel code within several days. Expressions such as “close to 100%” in the reports come from public descriptions; the exact proportion depends on how code volume is counted, for example, whether test and optimization code are included. Public materials are currently difficult to verify item by item. When reading such reports, it is important to distinguish between “can generate code” and “code can go directly into production.”
How Large Is the Performance Gap?
Whether automatically generated code performs reliably is the key question. According to public reports, in some tests, key metrics for AI-generated code showed a gap of about 10% compared with highly optimized conventional solutions.
This figure must be understood under specific conditions. The model used, chip model, operator scope, batch size, numerical precision, and comparison baseline all affect the results. Looking only at a percentage can easily lead to overly optimistic or overly pessimistic judgments. For inference workloads, a loss of around 10% may be considered recoverable by adding a small number of nodes or optimizing scheduling, but this needs to be calculated separately based on the business cost structure and latency requirements.
Reports also mention that after validation, the relevant organization began purchasing the vendor’s new-generation computing equipment and signed a large-scale cooperation agreement. Disclosure standards for the specific scale of cooperation are not uniform, so this article does not cite unverified figures. This signal shows that enterprises are willing to try non-mainstream compute after validation passes, but it cannot alone prove that the technology applies to all scenarios.
What It Means for GPU Software Ecosystems
For a long time, a mainstream parallel computing platform has built a strong software ecosystem barrier through first-mover advantage and a large developer community. Developers are familiar with its toolchain; switching to other hardware involves learning costs and code refactoring costs.
If the cost of low-level code migration drops significantly, the effect of this barrier will weaken. Enterprises may gain more bargaining room in procurement, and chip vendors’ competition may focus more on price-performance and energy efficiency.
However, ecosystem barriers are not only about kernel code. Compilers, math libraries, communication libraries, debugging tools, community experience, and long-term stability are also important. Automatically generating kernel code only lowers part of the threshold.
What Enterprises Should Evaluate
If a team is considering using automated tools for chip adaptation, it can start with the following aspects:
- Coverage: Which operators or kernels does the tool generate? Does it include high-frequency operators? Does it involve runtime, drivers, or communication libraries?
- Performance benchmarking: What is the comparison baseline? Do the test model, precision, and batch size match your own business?
- Correctness validation: Has generated code undergone numerical precision comparison, boundary condition testing, and long-duration stability testing?
- Debugging capability: Who locates issues when problems occur? Can the tool output readable intermediate results?
- Maintenance cost: After model or chip version updates, does generated code need to be revalidated?
It is advisable to start with a small-scale, high-frequency operator with controllable performance sensitivity as a pilot, record work hours, performance, and defect counts, and then decide whether to expand the scope.
What Role Cloud Platforms Play
As enterprises gain access to more chip types, managing compute resources becomes harder. Cloud platforms typically hide hardware differences beneath the platform layer through unified container environments, compute scheduling, and monitoring and alerting. Developers can focus more on models and tasks, while the platform matches suitable heterogeneous resources based on task characteristics and supports on-demand scaling.
When choosing cloud services, focus on three points: whether multiple heterogeneous chips are supported, whether scheduling policies are transparent, and whether monitoring metrics cover performance and failure information across different hardware.
Conclusion
LLM-based automatic generation of low-level kernel code does shorten part of adaptation work and offers new possibilities for compute diversification. However, it is currently better suited to code tasks with clear boundaries and repeatable validation, and cannot replace full chip software engineering. Readers can view it as an efficiency tool and use verifiable data to decide investment scale.
