Closed
【需求】opbase新增DAV_5162架构基础支持 #530
wuxueningAdd on  Oct 17Closed at  Oct 21
wuxuening
wuxueningCollaborators
Oct 17 Create

需求背景

Ascend5162A(NpuArch: DAV_5162,端侧 Tiny 类芯片,VL=32B、UB=128KB、无 SIMT/L0A/L0C/L2)需要接入 opbase 公共基础设施。当前 opbase 缺少 DAV_5162 架构的基础支撑,导致各算子仓(ops-math/nn/cv/transformer)的 5162A 适配遇到公共头缺失或按 950 假设取值错误的问题。

需求内容

  1. op_const_def.h:补充 DAV_5162 常量定义(与 CANN 9.3.0 soc_spec.h 枚举对齐),消除算子仓引用编译失败;
  2. host 侧 GetVRegSize:由硬编码 256B 改为经 PlatformAscendCManager::GetInstance()->GetVecRegLen() 动态获取(5162A 实际 32B);
  3. kernel 侧 GetVRegSize:__CCE_AICORE__ == 5162 时返回 AscendC::VECTOR_REG_WIDTH(5162A 为 32B,与 310 同为窄向量架构分组);
  4. IsRegbaseSocVersion:架构集合增加 DAV_5162(5162A 支持 RegBase);
  5. op_arch_helper:g_archToSocNames 补充 DAV_5162 → ascend5162a 映射,使经 AddConfigByArch 注册的算子可在 5162A 注册配置。

验收标准

  • 全量算子仓在 ascend5162a 下编译通过;
  • host/kernel 侧 GetVRegSize 在 5162A 上返回 32;
  • RegBase 路径与算子配置注册对 5162A 生效。
likedislike
wuxueningwuxueningCollaborators
Oct 17 Associated pull request
陈思
陈思
Oct 18 Comments:

/assign @wuxuening

likedislike
CANN-robotCANN-robotCollaborators
Oct 18 Assign wuxuening as responsible person
CANN-robotCANN-robotCollaborators
Oct 21 Close issue
CANN-robotCANN-robotCollaborators
Oct 21 Added label: resolved