| Files | Last commit | Last update |
|---|---|---|
feat(ir): Record the pypto_pro dialect in the dumped text Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7462 merge feat/io_text_pro_goldens into master feat(ir): Record the pypto_pro dialect in the dumped text Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 同一段 IR 文本可能来自两套前端: | | tensor 侧 | pypto_pro 侧 | |---|---|---| | 计算语句 | TensorOpStmt:!10000 ADDS(%a@0) token() #SCALAR(...) | Call:block.make_mutex_tile(..., dtype=half) | | 类型 | v0_logical_tensor | tensor<> / tile<> / mutex_tile<> / tuple<> / ptr<> / reg<> | dumper 两套都能写,但**写出来的文本不含方言信息**,load 侧只能靠调用方传一个 pro 标志。本 PR 让文本自描述: text function cast_kernel incast(tensor<32 x 64, float, tensor_view<, , ND>> %a_0, ...) outcast() #dialect(pro) #entry(false) #type(Opaque) { ... } See merge request: cann/pypto!7462 | 20 days ago | |
feat(pypto_pro): Add ConvTile declaration and allocation support Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !7061 merge feat-conv-tile into master feat(pypto_pro): Add ConvTile declaration and allocation support Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: 扩展 pypto_pro 前端支持卷积数据布局(NC1HWC0、NDC1HWC0、FRACTAL_Z、FRACTAL_Z_3D):多维 Tile 不再生成为 2-D 的 pto::Tile,而是生成为 L1 中的 pto::ConvTile,并支持通过 make_tile_group 对 ConvTile 进行声明与分配。 目前该接口只提供 ConvTile 的声明与分配能力,卷积数据搬运路径(GM 装载、im2col 折叠等)不在本次范围内。 主要变更: - IR 枚举、io_text 映射与 Python 绑定新增四个卷积 TensorLayout 取值 - 前端对多维卷积布局 TileType 提前校验:仅限 L1、按布局约束 rank,固定 16 与 C0 规则、dtype 白名单均镜像 pto-isa - 卷积布局由 HardwareInfo.conv_layout 承载,CCE codegen 发射 ConvTile<...>,且不携带 pto::ConvTile 所拒绝的 2-D (rows, cols) 构造实参 - 结构相等、哈希、IR 打印与 io_text 往返对新 conv_layout 字段保持一致 - 新增 parser/codegen 单元测试(全文 .pypto golden 对比)、C++ io_text 往返单元测试以及声明与分配的 NPU 上板系统测试 - 更新 SIMD-API 中 TileType 与 TensorLayout 的卷积布局文档 See merge request: cann/pypto!7061 | 20 days ago | |
feat(ir): Record the pypto_pro dialect in the dumped text Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7462 merge feat/io_text_pro_goldens into master feat(ir): Record the pypto_pro dialect in the dumped text Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 同一段 IR 文本可能来自两套前端: | | tensor 侧 | pypto_pro 侧 | |---|---|---| | 计算语句 | TensorOpStmt:!10000 ADDS(%a@0) token() #SCALAR(...) | Call:block.make_mutex_tile(..., dtype=half) | | 类型 | v0_logical_tensor | tensor<> / tile<> / mutex_tile<> / tuple<> / ptr<> / reg<> | dumper 两套都能写,但**写出来的文本不含方言信息**,load 侧只能靠调用方传一个 pro 标志。本 PR 让文本自描述: text function cast_kernel incast(tensor<32 x 64, float, tensor_view<, , ND>> %a_0, ...) outcast() #dialect(pro) #entry(false) #type(Opaque) { ... } See merge request: cann/pypto!7462 | 20 days ago | |
feat(ir): Record the pypto_pro dialect in the dumped text Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7462 merge feat/io_text_pro_goldens into master feat(ir): Record the pypto_pro dialect in the dumped text Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 同一段 IR 文本可能来自两套前端: | | tensor 侧 | pypto_pro 侧 | |---|---|---| | 计算语句 | TensorOpStmt:!10000 ADDS(%a@0) token() #SCALAR(...) | Call:block.make_mutex_tile(..., dtype=half) | | 类型 | v0_logical_tensor | tensor<> / tile<> / mutex_tile<> / tuple<> / ptr<> / reg<> | dumper 两套都能写,但**写出来的文本不含方言信息**,load 侧只能靠调用方传一个 pro 标志。本 PR 让文本自描述: text function cast_kernel incast(tensor<32 x 64, float, tensor_view<, , ND>> %a_0, ...) outcast() #dialect(pro) #entry(false) #type(Opaque) { ... } See merge request: cann/pypto!7462 | 20 days ago | |
feat(ir): Record the pypto_pro dialect in the dumped text Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7462 merge feat/io_text_pro_goldens into master feat(ir): Record the pypto_pro dialect in the dumped text Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 同一段 IR 文本可能来自两套前端: | | tensor 侧 | pypto_pro 侧 | |---|---|---| | 计算语句 | TensorOpStmt:!10000 ADDS(%a@0) token() #SCALAR(...) | Call:block.make_mutex_tile(..., dtype=half) | | 类型 | v0_logical_tensor | tensor<> / tile<> / mutex_tile<> / tuple<> / ptr<> / reg<> | dumper 两套都能写,但**写出来的文本不含方言信息**,load 侧只能靠调用方传一个 pro 标志。本 PR 让文本自描述: text function cast_kernel incast(tensor<32 x 64, float, tensor_view<, , ND>> %a_0, ...) outcast() #dialect(pro) #entry(false) #type(Opaque) { ... } See merge request: cann/pypto!7462 | 20 days ago | |
refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7357 merge newbranch into master refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 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!7357 | 24 days ago | |
refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7357 merge newbranch into master refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 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!7357 | 24 days ago | |
fix(pypto_pro): Validate inferred DN layouts in frontend Co-authored-by: cfy111<chenfengyu3@huawei.com> # message auto-generated for no-merge-commit merge: !7076 merge dn into master fix(pypto_pro): Validate inferred DN layouts in frontend Created-by: cfy111 Commit-by: cfy111 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!7076 | 30 days ago | |
fix(pypto_pro): Fix some bugs for dist Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7340 merge fix2 into master fix(pypto_pro): Fix some bugs for dist Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: feat(dist): Add flush_store to pld.notify and pld.notify_all perf(codegen): Include the dist header only for window kernels fix(dist): Bind the channel peer at creation only refactor(dist): Namespace device dist helpers into pypto::dist See merge request: cann/pypto!7340 | 27 days ago | |
feat(pypto_pro): Add ConvTile declaration and allocation support Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !7061 merge feat-conv-tile into master feat(pypto_pro): Add ConvTile declaration and allocation support Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: 扩展 pypto_pro 前端支持卷积数据布局(NC1HWC0、NDC1HWC0、FRACTAL_Z、FRACTAL_Z_3D):多维 Tile 不再生成为 2-D 的 pto::Tile,而是生成为 L1 中的 pto::ConvTile,并支持通过 make_tile_group 对 ConvTile 进行声明与分配。 目前该接口只提供 ConvTile 的声明与分配能力,卷积数据搬运路径(GM 装载、im2col 折叠等)不在本次范围内。 主要变更: - IR 枚举、io_text 映射与 Python 绑定新增四个卷积 TensorLayout 取值 - 前端对多维卷积布局 TileType 提前校验:仅限 L1、按布局约束 rank,固定 16 与 C0 规则、dtype 白名单均镜像 pto-isa - 卷积布局由 HardwareInfo.conv_layout 承载,CCE codegen 发射 ConvTile<...>,且不携带 pto::ConvTile 所拒绝的 2-D (rows, cols) 构造实参 - 结构相等、哈希、IR 打印与 io_text 往返对新 conv_layout 字段保持一致 - 新增 parser/codegen 单元测试(全文 .pypto golden 对比)、C++ io_text 往返单元测试以及声明与分配的 NPU 上板系统测试 - 更新 SIMD-API 中 TileType 与 TensorLayout 的卷积布局文档 See merge request: cann/pypto!7061 | 20 days ago | |
feat(pypto_pro): Upload for ssa Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6854 merge master_st into master feat(pypto_pro): Upload for ssa Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for ssa See merge request: cann/pypto!6854 | 25 days ago | |
feat(pypto-pro): Add insert sync pass Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7055 merge master into master feat(pypto-pro): Add insert sync pass Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Add insert sync pass See merge request: cann/pypto!7055 | 1 month ago | |
feat(pypto_pro): Upload for ssa Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6854 merge master_st into master feat(pypto_pro): Upload for ssa Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for ssa See merge request: cann/pypto!6854 | 25 days ago | |
feat(pypto-pro): Add insert sync pass Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7055 merge master into master feat(pypto-pro): Add insert sync pass Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Add insert sync pass See merge request: cann/pypto!7055 | 1 month ago | |
refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7357 merge newbranch into master refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 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!7357 | 24 days ago | |
fix(pypto_pro): Fix some bugs for dist Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7340 merge fix2 into master fix(pypto_pro): Fix some bugs for dist Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: feat(dist): Add flush_store to pld.notify and pld.notify_all perf(codegen): Include the dist header only for window kernels fix(dist): Bind the channel peer at creation only refactor(dist): Namespace device dist helpers into pypto::dist See merge request: cann/pypto!7340 | 27 days ago | |
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 | 1 month ago | |
add check about unsupported lower bit element for interface pl.min, pl.max, pl.astype. Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !7181 merge master into master add check about unsupported lower bit element for interface pl.min, pl.max, pl.astype. Created-by: gaoxiang618 Commit-by: gaoxiang Merged-by: cann-robot Description: 1. 修复pl.mix,pl.max等接口对于bf16的编译失败问题 2. 修复pl.setval数值类型和tile类型不一致时的精度问题 3. pl.min, pl.max拒绝只用于存储和SIMD计算的低精度类型 See merge request: cann/pypto!7181 | 26 days ago | |
refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7357 merge newbranch into master refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 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!7357 | 24 days ago | |
add check about unsupported lower bit element for interface pl.min, pl.max, pl.astype. Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !7181 merge master into master add check about unsupported lower bit element for interface pl.min, pl.max, pl.astype. Created-by: gaoxiang618 Commit-by: gaoxiang Merged-by: cann-robot Description: 1. 修复pl.mix,pl.max等接口对于bf16的编译失败问题 2. 修复pl.setval数值类型和tile类型不一致时的精度问题 3. pl.min, pl.max拒绝只用于存储和SIMD计算的低精度类型 See merge request: cann/pypto!7181 | 26 days ago | |
modify compact default value Co-authored-by: ChenYongji123<chenyongji6@huawei.com> # message auto-generated for no-merge-commit merge: !7171 merge master into master modify compact default value Created-by: ChenYongji123 Commit-by: ChenYongji123 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!7171 | 1 month ago | |
feat(pro): Add IR dumping for pypto_pro test cases Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !7174 merge vf-ir into master feat(pro): Add IR dumping for pypto_pro test cases Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: 归一化用例中打印的 IR See merge request: cann/pypto!7174 | 1 month ago | |
refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7357 merge newbranch into master refactor(pypto_pro): rename internal A5/A6 and drop A2/A3 remnants Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 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!7357 | 24 days ago | |
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 | 1 month ago | |
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 | 1 month ago | |
feat(pypto_pro): Add pypto_pro ut cases Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5108 merge pr_4929 into master feat(pypto_pro): Add pypto_pro ut cases Created-by: ChenYongji123 Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Add pypto_pro ut cases See merge request: cann/pypto!5108 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 24 days ago | ||
| 24 days ago | ||
| 30 days ago | ||
| 27 days ago | ||
| 20 days ago | ||
| 25 days ago | ||
| 1 month ago | ||
| 25 days ago | ||
| 1 month ago | ||
| 24 days ago | ||
| 27 days ago | ||
| 1 month ago | ||
| 26 days ago | ||
| 24 days ago | ||
| 26 days ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 24 days ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 4 months ago |