AI-Assisted Kernel Porting: Can Chip Enablement Be Reduced to Days?
Porting software to a new AI accelerator involves far more than translating kernel code. This article examines what chip enablement actually requires, what recent public claims about AI-generated kernels do—and do not—prove, and how to evaluate correctness, performance, scalability, and maintenance effort. It also outlines where AI can accelerate development, where engineering expertise remains essential, and what the shift could mean for established GPU software ecosystems.
What Does It Take to Enable a New Chip?
Adapting software to a new AI accelerator is often simplified as “translating the code.” In practice, the work spans multiple layers, including drivers, operator libraries, communication libraries, framework plugins, device kernels, and comprehensive testing.
These concepts should be distinguished. An instruction set architecture (ISA) defines which instructions the hardware can execute. A kernel function is the implementation of a specific operator, such as convolution or matrix multiplication. The runtime schedules and manages these kernels on the device. Rewriting kernel functions alone does not complete the adaptation.
What Can Publicly Reported Cases Tell Us?
According to public reports, an AI laboratory conducted an exploratory test in which an AI programming model generated a large amount of low-level kernel code in roughly three days and connected a new accelerator to a mainstream training framework. The reported coverage was close to 100%.
However, the reports did not disclose the model name, chip model, framework version, number of tested operators, or the definition of “human intervention.” As a result, it is impossible to determine what “close to 100%” actually measured. It could refer to the proportion of code generated, compilation success, functional test coverage, or performance targets. These metrics are substantially different and should not be conflated.
When evaluating results of this kind, start with five questions:
- How many operators were covered, and were they representative?
- Which tests passed? Did they include numerical accuracy and end-to-end training results?
- How many lines of code required human modification?
- How did the key operators perform compared with manually optimized implementations?
- Were the kernels tested under long-running workloads and failure-recovery scenarios?
A Chip-Enablement Acceptance Checklist
The following checklist can be used to evaluate AI-generated kernel code from any team or project.
| Acceptance Criterion | What to Check | Why It Matters |
|---|---|---|
| Successful compilation | Whether the code compiles with the target toolchain | This is the basic threshold, but it does not prove correctness |
| Single-operator correctness | Whether numerical errors remain within the permitted range compared with a reference implementation | Detects computational logic errors |
| End-to-end accuracy | Whether metrics after training a complete model remain close to the baseline | Detects accumulated errors missed by isolated operator tests |
| Performance regression | The ratio of throughput and latency for key operators compared with manually optimized versions | Determines the actual cost of production deployment |
| Human-fix ratio | The proportion of code requiring human modification | Directly reflects the true engineering effort |
| Distributed scaling | Communication efficiency and scalability across multiple devices and machines | Passing at small scale does not guarantee large-scale usability |
| Rollback plan | Whether the system can quickly switch back to the existing implementation if problems occur | Helps control production risk |
What AI Can Do Well—and What Remains Difficult
During architecture mapping, AI can use hardware documentation and existing operator implementations to infer mappings for common computations. For example, if the matrix unit has dimensions of 128 × 128, a model can use that constraint to derive a matrix tiling strategy. Tasks with explicit constraints are well suited to generating an initial implementation.
For memory optimization, AI can propose an initial data-movement strategy based on cache sizes and bandwidth characteristics. The final result still needs to be validated with performance profiling tools.
At the instruction-tuning level, AI can produce structurally correct vectorized or asynchronous code. Extracting the final few percentage points of performance, however, still depends on engineers’ experience and repeated measurement.
The following scenarios remain particularly challenging:
- Code involving core commercial secrets, as well as low-level firmware that must interact closely with drivers and virtualization layers.
- Training clusters connecting tens of thousands of accelerators, including their communication libraries, collective communication strategies, and failure-recovery mechanisms.
- Banking transaction systems, industrial control, and other environments with extremely high reliability requirements, where long-term runtime data is needed to establish trust.
What Does This Mean for Ecosystem Barriers?
Mainstream GPU software ecosystems, including the CUDA ecosystem, are difficult to migrate away from primarily because their codebases are large, highly optimized over many years, and deeply familiar to engineering teams. If AI can substantially reduce porting costs, some customers may become more willing to migrate, while the entry barrier for new hardware vendors could also fall.
Whether this impact materializes depends on several conditions:
- Can lower migration costs be reproduced across multiple real projects rather than appearing in only one case?
- Will framework communities and major users accept AI-generated kernel code and take responsibility for maintaining it?
- Can new hardware vendors provide sufficient documentation, debugging tools, and developer support?
- Can long-term maintenance costs be controlled? If AI-generated code is difficult to understand, future modifications may become expensive.
A more cautious conclusion is that AI-assisted porting may reduce part of the migration cost, but more evidence is needed before determining whether it will change the overall competitive landscape.
Recommendations for Developers and Decision-Makers
Technical decision-makers can treat AI-assisted porting as an evaluation tool. Select a medium-sized set of operators for a small pilot, record actual results using the acceptance checklist above, and then decide whether to expand the investment. Pilot data is more informative than promotional figures.
Developers should strengthen several capabilities: describing computational intent clearly, reviewing complex generated code, and using performance profiling tools effectively. These skills are valuable across chip platforms.
No matter how impressive the results appear, AI-generated code should not be deployed directly to production. Every component should pass the tests in the acceptance checklist, and a rollback plan should remain available.
Questions That Still Need to Be Verified
Public information cannot yet answer several important questions:
- Can the same approach be reproduced across different chips and framework versions?
- How does the human-fix ratio change as operator complexity increases?
- How stable is the generated code over long-running workloads in large-scale clusters, and how does it perform during failure recovery?
- How does the maintenance cost of AI-generated code compare with code written manually?
The answers will determine how broadly AI-assisted kernel porting can change the way chip enablement is performed.
