sync: GitCode master @ 4cd325a422dc - #276
Merged
Merged
Conversation
…t cases Co-authored-by: wangrunfa<wangrunfa1@huawei.com> # message auto-generated for no-merge-commit merge: !1550 merge fix/a2a3-tconcat-padding-pollution into master fix(a2a3): fix TConcat padding pollution and add int8/non-aligned test cases Created-by: wangrunfa Commit-by: wangrunfa Merged-by: cann-robot Description: ## 描述 修复 TConcatImpl isAligned 路径中 pto_copy_ubuf_to_ubuf 使用 ceil 对齐 block 长度拷贝 src1 数据时,将 src1 padding 垃圾值写入 dst padding 区域的问题。 同时新增 5 条 ST 测试用例覆盖 int8、非对齐场景,全部用例 NPU 通过。 ## 关联的Issue closes #544 https://gitcode.com/cann/pto-isa/issues/544 ## 测试 - 全部 14 条 TCONCAT ST 用例 NPU 板端通过,max diff = 0 - 新增用例覆盖:int8 类型、双非对齐 (scalar copy)、dstTileH ≠ srcTileH ## 文档更新 无 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pto-isa!1550
Co-authored-by: zhywang<wangzhiyong74@huawei.com> # message auto-generated for no-merge-commit merge: !1548 merge fp4 into master fix: correct NZ C0 size for FP4 tensors Created-by: zhhywang Commit-by: zhywang Merged-by: cann-robot Description: Created-by: zhhywang Commit-by: zhhywang Merged-by: cann-robot Description: 修复 pto_tile NZ FP4 的 C0、shape 和 stride 计算,使 32 Byte C0 正确表示 64 个 FP4 逻辑元素。 ## 描述 1 file changed, 27 insertions(+), 11 deletions(-) - **范围**:修改 include/pto/common/pto_tile.hpp 中 NZ 二维 shape 和 stride 辅助类型。 - **问题**:FP4 的 C++ 存储类型大小为 1 Byte,原有 32 / sizeof(T) 将 C0 错误计算为 32 个逻辑元素。 - **修复**:新增统一的 NZ C0 计算,对 FP4 和 CPU 仿真的 twin 类型返回 64,并同步更新静态、动态 shape 和 stride 计算。 - **影响**:NZ FP4 的 C0、fractal shape 和原始 shape stride 按逻辑元素正确生成;其他数据类型保持原有计算方式。 ## 关联的Issue ## 测试 - gitcode_commit.py precheck --repo . - 结果:PASS,所有适用的 pre-commit 检查通过。 ## 文档更新 无。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pto-isa!1548
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated daily sync from GitCode
cann/pto-isa:masterinto GitHubhw-native-sys/pto-isa:main.Carries only commits after cut point:
265344a175559f2702a7c95c87fcc5afefca60bcCut point source:
merged-pr-273Source SHA:
4cd325a422dce40e367cce8b9c20795281925e8aSync mode:
cherry-pickGenerated by the Sync GitCode to GitHub workflow.