Closed
【需求】opbase新增DAV_5162架构基础支持 #530
wuxueningAdd on Oct 17Closed at Oct 21
Oct 17 Associated pull request
陈思
Oct 18 Comments:
Oct 18 Comments:
/assign @wuxuening


Oct 18 Assign wuxuening as responsible person
Oct 21 Close issue
Oct 21 Added label: resolved
需求背景
Ascend5162A(NpuArch: DAV_5162,端侧 Tiny 类芯片,VL=32B、UB=128KB、无 SIMT/L0A/L0C/L2)需要接入 opbase 公共基础设施。当前 opbase 缺少 DAV_5162 架构的基础支撑,导致各算子仓(ops-math/nn/cv/transformer)的 5162A 适配遇到公共头缺失或按 950 假设取值错误的问题。
需求内容
op_const_def.h:补充DAV_5162常量定义(与 CANN 9.3.0 soc_spec.h 枚举对齐),消除算子仓引用编译失败;GetVRegSize:由硬编码 256B 改为经PlatformAscendCManager::GetInstance()->GetVecRegLen()动态获取(5162A 实际 32B);GetVRegSize:__CCE_AICORE__ == 5162时返回AscendC::VECTOR_REG_WIDTH(5162A 为 32B,与 310 同为窄向量架构分组);IsRegbaseSocVersion:架构集合增加DAV_5162(5162A 支持 RegBase);op_arch_helper:g_archToSocNames补充DAV_5162 → ascend5162a映射,使经AddConfigByArch注册的算子可在 5162A 注册配置。验收标准
GetVRegSize在 5162A 上返回 32;