| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(pypto_pro): use ASC printf for debug output Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !6318 merge fixdocs into master fix(pypto_pro): use ASC printf for debug output Created-by: fafafafafa Commit-by: fa Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6318 | 2 个月前 | |
feat(pypto_pro): replace internal 'a5' with NPUArch enum Co-authored-by: m0_55221889<chenliwen12@huawei.com> # message auto-generated for no-merge-commit merge: !6705 merge docs/fix-arch into master feat(pypto_pro): replace internal 'a5' with NPUArch enum Created-by: m0_55221889 Commit-by: m0_55221889 Merged-by: cann-robot Description: ## 背景 a5 为内部芯片代号,不应对外暴露。__NPU_ARCH__ 官方架构版本号中,Ascend 950PR/950DT 系列对应 **3510**(Atlas A2/A3 为 2201,训练系列为 1001)。本 PR 将 Pro 侧 arch 身份整体切换为 3510,并把散落的字符串字面量统一收敛到枚举。 ## 改动内容(5 个提交) **1. rename + fixtures + docs**:pl.jit(arch="3510")、combo/编译配置表键、比较逻辑、错误消息、产物目录名 build/<kernel>__3510__d0 及 pro 指南文档,全量替换。 **2. C++ 枚举化**:CCECodegen::arch_ 由 std::string 改为复用既有 NPUArch 枚举(与 base codegen 对齐);platform.h 新增 ParseNPUArch(数值串 + legacy 别名 a5/a2/a3,未知返 DAV_UNKNOWN);backends 15 处比较、archToIni 映射全部枚举化。 **3. Python 枚举化**:新增叶子模块 pypto_pro/_arch.py——NpuArch(IntEnum)(镜像 C++ 枚举)+ parse_arch()。 PYPTOPRO_JIT_ARCH 恒存规范值 "3510";即使传 a5,产物目录也统一为 __3510__。 ## 向后兼容 - pl.jit(arch="a5") 等全部公开入口:**警告但放行**(DeprecationWarning + 归一),不报错 - C++ ParseNPUArch 静默接受 a5/a2/a3 → 57 处既有 C++ 测试 fixture **零改动**,同时构成别名解析的隐式回归覆盖 See merge request: cann/pypto!6705 | 2 个月前 | |
fix test_error_format ut bug Co-authored-by: huanyongben<huanyongben1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6728 merge master into master fix test_error_format ut bug Created-by: huanyongben Commit-by: huanyongben Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6728 | 2 个月前 |