Dual-Chip Collaboration: Building China’s Domestic General-Purpose and AI Computing Stack
This article examines why a combined general-purpose and AI computing architecture is needed, how CPU and NPU collaboration is structured across the chip, hardware, runtime, framework, and application layers, and what technical and ecosystem challenges must be addressed. It also reviews ecosystem-building dimensions such as software compatibility, migration tooling, and partner and developer networks, then offers a developer-oriented framework for workload profiling, framework validation, benchmarking, engineering readiness, and gradual migration. The conclusion frames competitiveness as chip architecture innovation × software stack completeness × ecosystem scale and outlines future directions in heterogeneous scheduling, cluster interconnect, and training framework optimization.
1. Background: Why a “General-Purpose + AI” Dual-Computing System Is Needed
In recent years, exploding data volumes and the rapid evolution of deep learning models have pushed computing demand in two clear directions. First, traditional general-purpose workloads—databases, web services, and big data processing—continue to grow. Second, AI workloads, especially training and inference, are rising rapidly as a share of total compute. These two workload types place very different requirements on chip architecture:
- General-purpose computing emphasizes single-core performance, memory bandwidth, multi-core scalability, and ecosystem compatibility. The maturity of the instruction-set ecosystem directly determines software migration costs.
- AI computing emphasizes high-throughput matrix and vector operations, large memory capacity, and high-speed interconnect. Specialized acceleration architectures such as NPUs far exceed general-purpose CPUs in energy efficiency.
As a result, the industry commonly adopts a heterogeneous architecture in which the CPU handles general-purpose logic and scheduling while dedicated accelerators handle AI compute. One Chinese vendor launched its self-developed AI accelerator chip series and an ARM-compatible server processor between 2018 and 2019, and explicitly advanced a computing strategy based on dual engines: general-purpose computing plus AI computing. This is a typical practice aligned with that technical trend.
2. Dual-Chip Collaborative Architecture
2.1 Layered Decoupling: From Chips to Applications
A mature computing system is usually divided into five layers from bottom to top:
- Chip layer: general-purpose CPUs and AI accelerator chips (NPUs). AI chips often use self-developed domain-specific architectures (DSAs) with hardware optimizations for operators such as convolution and matrix multiplication.
- Hardware product layer: chips are packaged into modules, boards, servers, or integrated training clusters. Examples include small SoCs for edge inference, training cards for data centers, and large-scale training clusters made up of thousands of accelerator cards.
- Driver and runtime layer: responsible for device management, memory management, and task scheduling.
- Computing framework layer: AI frameworks and operator libraries that abstract hardware differences downward and support model development upward. A self-developed AI framework and adaptation plugins for mainstream frameworks such as TensorFlow and PyTorch determine how easily developers can migrate.
- Application and enablement layer: includes model repositories, inference service engines, and migration toolchains that help businesses deploy solutions quickly.
2.2 Key Issues in Co-Design
Dual-chip collaboration is not simply placing two types of chips in the same server. It also requires solving:
- Task partitioning: which operators run on the CPU and which run on the NPU. A typical approach keeps data preprocessing and business logic on the CPU while offloading dense computation to accelerators.
- Data movement overhead: PCIe bandwidth between the CPU and accelerator often becomes a bottleneck. Techniques such as Zero-Copy, operator fusion, and on-chip caching are needed to reduce data movement.
- Unified programming model: ideally, developers can use one set of framework code to transparently utilize heterogeneous compute. This depends on graph optimization and automatic partitioning capabilities at the framework layer.
3. Ecosystem Building: The Real Moat in Computing Competition
Chip performance is only the entry ticket; the ecosystem is the decisive factor. Historically, multiple architectures with strong performance but weak ecosystems ultimately failed, and the lesson is significant. Ecosystem building for a domestic computing stack can be observed from three dimensions.
3.1 Software Stack Compatibility
Choosing a mature instruction set such as ARM for general-purpose CPUs allows a large number of existing operating systems, databases, and middleware components to be ported at lower cost. On the AI side, providing adapted backends for mainstream frameworks allows developers to switch underlying hardware with almost no changes to training code.
3.2 Toolchains Reduce Migration Costs
A typical migration path includes:
# Illustrative process: a three-step general migration method# 1) Environment dependency analysis and containerization# 2) Code-level scan: identify incompatible APIs and assembly instructions# 3) Rebuild/retrain + accuracy and performance benchmark validation
Supporting migration assessment tools, performance tuning tools, and accuracy comparison tools can compress months of manual migration into days.
3.3 Developer and Partner Network
According to public information, by 2022 the ecosystem had more than 5,200 partners, 3.1 million developers, and over 14,000 certified solutions. This positive cycle of partners, developers, and solutions is a sign of ecosystem maturity: partners provide industry solutions, developers accumulate skills and content, and the certification system ensures solution quality. The three reinforce one another.
4. Selection and Migration from a Developer Perspective
For teams considering a domestic heterogeneous computing stack, evaluation can follow this framework:
- Workload profiling: distinguish inference workloads (low latency, high concurrency) from training workloads (high throughput, cluster scalability), and match them respectively to edge SoCs, inference cards, or training clusters.
- Framework adaptation validation: first run core models in a test environment, focusing on support for custom operators and accuracy consistency.
- Performance benchmark modeling: do not look only at peak TOPS. Measure end-to-end throughput and P99 latency, and focus on operator utilization rather than paper specifications.
- Engineering support: confirm whether container images, Kubernetes device plugins, monitoring and alerting, and logging systems are complete, as these directly affect production operations costs.
- Gradual migration strategy: use A/B dual-run comparison, gradually shift traffic, and establish a performance rollback plan.
5. Conclusion and Outlook
The core competitiveness of a domestic computing stack = chip architecture innovation × software stack completeness × ecosystem scale. The value of the dual-engine strategy is that general-purpose computing supports the smooth evolution of existing business workloads, while AI computing handles incremental intelligent workloads. The two collaborate through a unified framework and toolchain to form a complete technical loop. For developers, understanding the layered logic of chip—hardware—framework—application and mastering benchmarking and gradual migration methods are key to capturing this technology wave. In the future, as large models continue to drive up computing demand, heterogeneous scheduling, cluster interconnect, and collaborative optimization of training frameworks will remain directions of sustained industry investment.
