Skip to content

[VPTO] Support mixed AIV/AIC kernel emission - #998

Open
erhsh wants to merge 1 commit into
hw-native-sys:mainfrom
erhsh:cj/main_mixed_kernel
Open

[VPTO] Support mixed AIV/AIC kernel emission#998
erhsh wants to merge 1 commit into
hw-native-sys:mainfrom
erhsh:cj/main_mixed_kernel

Conversation

@erhsh

@erhsh erhsh commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

修改说明

本次修改主要用于支持 CANN 9.0 后端的 AIV/AIC 混合 Kernel 发射,同时修复该流程涉及的容器处理、符号命名与合法性校验问题。

修改方式

  • kernel kind 合并同类型 Device Module。
  • 将符合约束的 Vector → Cube 跨 Kernel 调用转换为独立入口,由 Host Stub 并发启动。
  • 统一逻辑名称以及 _aiv_aic 后缀的处理。
  • 完善 CV Module 的拆分与容器规范化。
  • 增加缺失 pto.kernel_kind、重复符号定义及非法跨 Kernel 调用的诊断。

影响范围

修改主要涉及:

  • VPTO 容器规范化与拆分
  • CANN 9.0 和通用 LLVM IR 发射
  • Host Stub 生成
  • 相关负向测试与错误诊断

本次修改不影响其他后端的核心指令降级逻辑。

Merge device modules by kernel kind and promote cross-kernel cube calls
to entry functions for concurrent host launch. Preserve logical kernel
names, normalize mixed VPTO containers, and diagnose invalid or
duplicate device modules.
@Zhendong404
Zhendong404 requested a review from mouliangyu July 25, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant