| Files | Last commit | Last update |
|---|---|---|
fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Co-authored-by: tsungl4<lidongsheng4@huawei.com> Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !6093 merge 9.2.0 into 9.2.0 fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Created-by: seu_chang Commit-by: seu_chang;tsungl4 Merged-by: cann-robot Description: bf599774e dd89fd6af f14a6b6a e2e62919e 同步主线4笔提交,从master cherry-pick到9.2.0分支 See merge request: cann/pypto!6093 | 2 months ago | |
fix(pass): Fix nested-loop InferMultiIterOverlap and refine local-tensor create detection Include dump function attribute support for rebuildable attrs. Co-authored-by: Cursor <cursoragent@cursor.com> | 2 months ago | |
fix(ir): Preserve token dependencies for inplace operations Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5766 merge fix_inplace_op into master fix(ir): Preserve token dependencies for inplace operations Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: fix(ir): Preserve token dependencies for inplace operations PR 描述(中文): ## 问题背景 inplace 算子的输入与输出共享底层存储。原有 token 推导逻辑会为 inplace输入生成新的 read token,覆盖此前 reader 在输入 tensor 上保存的 read token,导致读后写(WAR)依赖无法正确传递。 在创建 root/hidden function 时,原始 tensor 会被本地 incast tensor 替换。如果没有同步 token 元数据,后续 Function 展开也无法识别该依赖。 ## 修改内容 - 识别与当前算子输出共享存储的 inplace 输入,不再为其生成新的 read token。 - 保留此前 reader 产生的 read token,并将其作为 inplace 写操作的 WAR依赖。 - 使用 inplace op 的 write token 表示其内部读写操作完成。 - 创建 hidden function 的 incast tensor 时,将原始 tensor 的 read/write token 复制到实际参与计算的本地 tensor。 - 更新 inplace token 相关 UT 的预期 IR。 ## 修改效果 修复以下依赖场景: - 普通读之后执行 inplace 写时,写操作正确等待此前的读 token。 - 连续 inplace 写之间保留正确的 WAW 依赖。 - 通过 alias 读取或写入时,依赖能够基于共享 storage 正确传播。 - 拆分 root/hidden function 后,token 元数据不会丢失。 See merge request: cann/pypto!5766 | 2 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
refactor(ir): fix CodeCheck warnings with hex literals and comment cleanup Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !6441 merge pr6327-to-920 into 9.2.0 refactor(ir): fix CodeCheck warnings with hex literals and comment cleanup Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: 修复 CodeCheck 扫描报告的告警,纯重构、不改变行为: 1 魔法数字改为十六进制字面量:memory / out_elementwise / sanitizer_pass 中参数个数与尺寸校验的 2/3 统一写为 0x2/0x3 2 参数索引补充 NOLINT 注释:out_elementwise 的 lhs/rhs 索引、printer 的 "::" 分隔符长度 3 表达式加括号明确优先级:printer / io_text_dumper 中 AnyCast(...) 调用统一加括号 4 注释清理:merge_stmts_pass 删除空注释行并补全算法描述、dead_code_elimination 注释措辞改写 See merge request: cann/pypto!6441 | 2 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Co-authored-by: tsungl4<lidongsheng4@huawei.com> Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !6093 merge 9.2.0 into 9.2.0 fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Created-by: seu_chang Commit-by: seu_chang;tsungl4 Merged-by: cann-robot Description: bf599774e dd89fd6af f14a6b6a e2e62919e 同步主线4笔提交,从master cherry-pick到9.2.0分支 See merge request: cann/pypto!6093 | 2 months ago | |
fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Co-authored-by: tsungl4<lidongsheng4@huawei.com> Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !6093 merge 9.2.0 into 9.2.0 fix(ir): Descend into symbolic scalar expr operands to keep loop-carried scalars alive Created-by: seu_chang Commit-by: seu_chang;tsungl4 Merged-by: cann-robot Description: bf599774e dd89fd6af f14a6b6a e2e62919e 同步主线4笔提交,从master cherry-pick到9.2.0分支 See merge request: cann/pypto!6093 | 2 months ago | |
feat(pypto-pro): Refactor ssa & control flow Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6249 merge 9.2.0 into 9.2.0 feat(pypto-pro): Refactor ssa & control flow Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Refactor ssa & control flow See merge request: cann/pypto!6249 | 2 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(ir): Add block ir support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3271 merge new_ir into master feat(ir): Add block ir support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: add block ir See merge request: cann/pypto!3271 | 6 months ago | |
fix(machine): fix mismatch and incomplete error descriptions in machine and misc files Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5806 merge pyptolog_fix3 into master fix(machine): fix mismatch and incomplete error descriptions in machine and misc files Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: machine 日志内容整改 See merge request: cann/pypto!5806 | 2 months ago | |
refactor(ir): fix CodeCheck warnings with hex literals and comment cleanup Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !6441 merge pr6327-to-920 into 9.2.0 refactor(ir): fix CodeCheck warnings with hex literals and comment cleanup Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: 修复 CodeCheck 扫描报告的告警,纯重构、不改变行为: 1 魔法数字改为十六进制字面量:memory / out_elementwise / sanitizer_pass 中参数个数与尺寸校验的 2/3 统一写为 0x2/0x3 2 参数索引补充 NOLINT 注释:out_elementwise 的 lhs/rhs 索引、printer 的 "::" 分隔符长度 3 表达式加括号明确优先级:printer / io_text_dumper 中 AnyCast(...) 调用统一加括号 4 注释清理:merge_stmts_pass 删除空注释行并补全算法描述、dead_code_elimination 注释措辞改写 See merge request: cann/pypto!6441 | 2 months ago | |
feat(ir): merge redundant producer results in token cleanup Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !6181 merge merge_danglin_920 into 9.2.0 feat(ir): merge redundant producer results in token cleanup Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 开启 AssembleNewLogicalTensor 后,ASSEMBLE 会产生新的 LogicalTensor version。部分后续构图场景中,ATOMIC_RMW 也可能产生同一 RawTensor 的多个结果版本。 当较早版本没有数据消费者,而后续兼容版本仍被使用时,保留多个结果 tensor 会造成冗余的 LogicalTensor 版本和数据依赖。 ## 修改内容 在 RemoveRedundantTokenPass 中新增 dangling producer result 合并逻辑。 在同一 SeqStmts 内,按 RawTensor 对单输出 TensorOp 结果分组。 将无数据消费者的较早结果,合并到后方第一个有数据消费者且 LogicalTensor 描述兼容的结果。 支持普通 TensorOp、ASSEMBLE 及 ATOMIC_RMW 输出结果的合并。 仅向后合并,不跨 If、For、While 的 SeqStmts 边界,避免引入反向依赖。 合并阶段不以写区或 token 作为门槛,也不主动删除 token;后续冗余 token 删除与未使用 token 清理继续负责 token 优化。 新增 atomic 多版本结果合并 UT,并更新重叠写场景的预期。 See merge request: cann/pypto!6181 | 2 months ago | |
feat(sanitizer): Optimize memory detection tools Co-authored-by: zhengyaoff12<zhengyao12@huawei.com> # message auto-generated for no-merge-commit merge: !6269 merge sanitizer-replay-v2-920 into 9.2.0 feat(sanitizer): Optimize memory detection tools Created-by: zhengyaoff12 Commit-by: zhengyaoff12 Merged-by: cann-robot Description: ## 概述 与 master 分支的 MR #6244 内容完全一致(同一组修改,落到 9.2.0 基线;涉及的四个源码文件在两条基线上版本相同,diff 一致:380+/281-,单提交)。 ## 内容 ### 回放侧(Host) - 记录布局声明为命名字段列表、去除派生尺寸表与未用字段、按 det 预分组、级别单一来源、报告文件去除 magic/version 头、回放审计 - build/<kernel>/sanitizer_findings.txt:人类可读报告(每次启动覆盖) - PYPTO_SANITIZER_REPORT=<path>:跨启动追加汇总 ### 报告文案 - 使用前端词汇:offsets [...] + valid_shape [...] exceed tensor/tile shape,算式完整拼写并带 (over by N);GM 与 tile 两类报错句式统一 - ViewShape 记录携带源 tensor 各维;视图报错点名 make_tensor,同时展示两侧 shape 与覆盖字节(含 stride 展开) ### 文档 - 新增 guide 页面 docs/zh/guide/programming_guide/pro/debug/sanitizer.md(jit(sanitizer=True) 用法、检测类型、汇总文件、约束与各类示例),debug index 挂链 ### 测试 - 测试入口支持直接运行:python3 test_sanitizer_selflog.py [用例名 ...] 可跑全部或指定用例 ## 验证 - Ascend950 实测:37 个 sanitizer ST 用例全部通过(单用例 2.9s / 全量 31.6s) https://gitcode.com/cann/pypto/issues/2855 See merge request: cann/pypto!6269 | 2 months ago | |
fix(ir): Select merged valid_shape by branch condition Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5840 merge fix/phi-shape into master fix(ir): Select merged valid_shape by branch condition Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5840 | 2 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 6 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 3 months ago |