| Files | Last commit | Last update |
|---|---|---|
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 2 months ago | |
feat(dfx): Simplify compiler monitor timeout reporting Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !7343 merge new_monitor into master feat(dfx): Simplify compiler monitor timeout reporting Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除compile_timeout_stage 和 compile_monitor_print_interval 两个超时检测的配置项 以及相关内容 See merge request: cann/pypto!7343 | 21 days ago | |
fix(docs): Update documentation for bitwisenot operation Co-authored-by: dingsinuo<dingsinuo@huawei.com> # message auto-generated for no-merge-commit merge: !7709 merge not into master fix(docs): Update documentation for bitwisenot operation Created-by: dingsinuo Commit-by: dingsinuo Merged-by: cann-robot Description: 修改bitwisenot文档支持bool类型 See merge request: cann/pypto!7709 | 3 days ago | |
prioritize registered pipes in core placement validation Co-authored-by: ChenYongji123<chenyongji6@huawei.com> # message auto-generated for no-merge-commit merge: !7779 merge master into master prioritize registered pipes in core placement validation Created-by: ChenYongji123 Commit-by: ChenYongji123 Merged-by: cann-robot Description: 1、优化section校验流程,先基于op的流水类型判断->无法根据流水类型判断的,再进行特殊op校验->最后统一认为是CV都可; 2、修复python test.py执行时,在获取并解析调用栈地址过程中,使用addr2line -e python导致失败的场景。修改:通过/proc/self/exe获取当前进程(python)实际的可执行文件路径,再通过addr2line工具获取。 See merge request: cann/pypto!7779 | 2 days ago | |
refactor(pypto_pro): address codecheck warnings Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !7683 merge bugfix into master refactor(pypto_pro): address codecheck warnings 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!7683 | 3 days ago | |
feat(dist): Support register memory_region Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7421 merge win into master feat(dist): Support register memory_region Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #3562 See merge request: cann/pypto!7421 | 18 days ago | |
fix(interpreter): Fix bug of op viewtype Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !7759 merge master into master fix(interpreter): Fix bug of op viewtype Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: fix op viewtype,支持非连续内存拷贝 See merge request: cann/pypto!7759 | 1 day ago | |
fix(pypto_pro):fix bug of img2ColConfig and convTile load Co-authored-by: Zehai<wangzehai3@huawei.com> # message auto-generated for no-merge-commit merge: !7805 merge fix_img2colConfig into master fix(pypto_pro):fix bug of img2ColConfig and convTile load Created-by: Zehai Commit-by: Zehai Merged-by: cann-robot Description: 1.修复img2ColConfig中的padding参数的错误 Changes:将padding从编译期常量修改为运行期参数 2.修复convTile load中cin向上cin0对齐的错误 Changes:将cin从向上cin0对齐修改为非cin0对齐 See merge request: cann/pypto!7805 | 1 day ago | |
fix(machine): Use atomic load/exchange for DRCO indexFinished increment Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !7797 merge master into master fix(machine): Use atomic load/exchange for DRCO indexFinished increment Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: fix(machine): Use atomic load/exchange for DRCO indexFinished increment See merge request: cann/pypto!7797 | 2 days ago | |
feat(ir): Harden io_text resume for fusion kernels Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7820 merge feat/io_text_resume_ab_issue4 into master feat(ir): Harden io_text resume for fusion kernels Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: ## 一、背景 融合算子(moe、attention 等)在 checkpoint → load → resume 场景下出现三类问题: 1. dumper 会为掩码元素写出 inf/nan 浮点字面量,而 loader 的词法规则只接受十进制/科学计数法,导致 **load 直接失败**; 2. 文本加载时创建的 Operation 对象没有挂到宿主 function 的 operations_ 中,后续 pass 重建语句后,tensor 的 producer/consumer 集合可能保留悬空指针,触发 **CompareOp use-after-free**; 3. resume 一致性校验缺少“与历史编号无关”的文本比较能力,@id、!opid、派生名后缀、#memId 等历史相关标签会导致同一结构文本不相等,难以判断 resume 是否真正一致。 本 PR 对应其中的 A(非有限字面量)、B(文本 op 所有权)以及 ISSUE-4 的比较接口,不包含 tile scope、token/alias/inplace 等后续改动。 ## 二、改动 ### A. 非有限浮点字面量(io_text_loader.cpp / io_text_dumper_attr.cpp) - loader 的 TokFloat 正则支持 inf、-inf、+inf、nan(含符号); - dumper 仅在 std::isfinite(value) 为真时补 .0,避免把 inf/nan 写成 inf.0 之类不可回读的形式。 效果:dumper 写出的非有限字面量可以被 loader 原样读回,round-trip 稳定。 ### B. 文本 op 所有权(function.h / io_text_loader.cpp) - Function 新增 AddOperationPtr(std::shared_ptr<Operation>); - ParseStmtV0TensorOp 创建 Operation 后立即挂到 hostFunc_。 效果:文本加载的 op 生命周期由宿主 function 持有,pass 重建语句时不再留下悬空 producer/consumer,消除 CompareOp use-after-free。 ### ISSUE-4 比较接口(python/pypto/ir.py) 新增两个公开接口: - ir.normalize_ir_text(text):仅归一化历史相关标签 - @id、!opid 重编号; - 派生名数字后缀(如 f_1 / f_9、%x_0_1)折叠; - #memId(n) 归一为 #memId(*); - 不改结构、不改属性值。 - ir.text_equal(lhs, rhs):对两份文本先归一化再比较。 推荐用法: 用 ir.text_equal(direct_text, resume_text) 替换 ==; 说明:该接口用于 resume/round-trip 的一致性判定,不改变 IR 本身的编号生成规则(ISSUE-4 的编号策略仍按既定方案延后)。 See merge request: cann/pypto!7820 | 1 day ago | |
feat(pypto-pro): Introduce PGOVFRunOnProgram pass Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7474 merge master into master feat(pypto-pro): Introduce PGOVFRunOnProgram pass Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Introduce PGOVFRunOnProgram pass See merge request: cann/pypto!7474 | 16 days ago | |
fix(function): Avoid abort when RecordFunc destroyed after Program reset Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !7717 merge master into master fix(function): Avoid abort when RecordFunc destroyed after Program reset Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: fix(function): Avoid abort when RecordFunc destroyed after Program reset See merge request: cann/pypto!7717 | 4 days ago | |
fix(pypto_pro):fix bug of img2ColConfig and convTile load Co-authored-by: Zehai<wangzehai3@huawei.com> # message auto-generated for no-merge-commit merge: !7805 merge fix_img2colConfig into master fix(pypto_pro):fix bug of img2ColConfig and convTile load Created-by: Zehai Commit-by: Zehai Merged-by: cann-robot Description: 1.修复img2ColConfig中的padding参数的错误 Changes:将padding从编译期常量修改为运行期参数 2.修复convTile load中cin向上cin0对齐的错误 Changes:将cin从向上cin0对齐修改为非cin0对齐 See merge request: cann/pypto!7805 | 1 day 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 | |
fix(ir): Preserve dynamic shapes and tile attrs in io_text Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !7792 merge fix/io_text_roundtrip_core into master fix(ir): Preserve dynamic shapes and tile attrs in io_text Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: ## 背景 测试对 ops/Function/pythonSyntax 的 kernel 做 9 个 stage 的 checkpoint → load → resume 验证,本 PR 处理与 config scope 无关的三类问题: - ISSUE-3:文本缺少 raw tensor 的符号动态 shape,load 后 #dynvalidshape 退化为 [-1,-1],resume 与直跑的 RUNTIME_GetInputShapeDim 绑定不一致; - ISSUE-5:从文本重建后派生函数名可能重复,create_root_functions 直接 abort(xxx_2 already exists in functionmap); - ISSUE-6:算子级 #vec_tile 与 ambient 不一致时,dump→load→dump 会把 ambient 追加进算子 tile(值膨胀,文本不幂等)。 ## 改动 1. 保留 raw tensor 的符号动态 shape(ISSUE-3) - dump:GetDynRawShape() 含非常量表达式时输出 #dynrawshape([...]); - load:解析并 UpdateDynRawShape;旧文本无该属性时回退按 #shape 构造。 2. 派生函数名去重(ISSUE-5) - ir_func_builder.cpp 新增 UniqueMagicName(program, rawName, suffix):候选名被占用时顺延后缀; - 仅用于 dynamic / hidden / PATH 三类派生函数,不改变“冲突时复用已有函数”的语义,也不触碰非 DYNAMIC 函数的 magicName == GetFuncMagic() 合约。 3. 算子级 tile 覆盖而非追加(ISSUE-6) - SetOpTileShape 的 vec_tile 分支先 clear() 再赋值:文本 #vec_tile 表示算子有效 tile,替换 loader 从 ambient 预填的值。 4. 顺带修复:空 ambient tile 导致自身文本不可 reload - program 头在 ambient tile 为空时不再输出 #vec_tile([]) / #cube_tile([]);loader 对旧文本中的空 tile 头视为无覆盖。 5. 代码整理与回归 - EncodeTile/DecodeTile 及尺寸常量从 dumper/loader 各自副本提取到 io_text_config_value.h 共用; - 新增 python/tests/ut/ir/test_resume_dynamic_shape.py:#dynrawshape、load→dump 幂等、resume 与直跑动态调用数一致、#vec_tile 幂等; - 重刷受影响的 v0 golden。 ## 验证 | 项 | 结果 | |---|---| | python/tests/ut/ir | 379 passed(仅基线 test_ir_verify 失败) | | C++ ApplyConfigOpsTest / IoTextDumpRoundTripTest(29) / IoTextDumpTest / MergeStmt / InferToken / RemoveRedundantToken / IoTextTileTest | 全部 PASSED | | syn_cube_kernel、kc_helper_default resume stage 8 | 正常,无回归 | | 动态 kernel checkpoint(0)→load→resume(0) | RUNTIME_GetInputShapeDim 调用数与直跑一致(38/16 → 62/62) | | dump→load→dump | 文本逐字节幂等 | See merge request: cann/pypto!7792 | 2 days ago | |
fix(conv): clamp nSize to dst C space to stop UB overflow and round mSize to full fractal to ensure AIC-AIV visibility Co-authored-by: rhineriver23<liyouhui1@huawei.com> # message auto-generated for no-merge-commit merge: !7771 merge bugfix_1 into master fix(conv): clamp nSize to dst C space to stop UB overflow and round mSize to full fractal to ensure AIC-AIV visibility Created-by: rhineriver23 Commit-by: rhineriver23 Merged-by: cann-robot Description: ## 描述 L0C -> UB搬运的宽度完全由源侧分形几何决定,没有与目的端UB tile的剩余空间和分形对齐约束做一致性处理,导致部分用例精度失败。 ## 修改内容 framework/src/interface/tileop/conv/impl/arch35/conv_store_nz2dn_impl.h:N方向宽度和M方向宽度都改为整分形对齐,并进行目的端剩余空间钳制。 See merge request: cann/pypto!7771 | 2 days ago | |
fix(interpreter): Add interception and error code for oom killed Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !7621 merge master into master fix(interpreter): Add interception and error code for oom killed Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 增加精度工具对于oom killed的拦截报错 See merge request: cann/pypto!7621 | 8 days ago | |
feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: yuxin5<yuxin5@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !6752 merge dev into master feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Created-by: yuxin5 Commit-by: Zehai;yuxin5;zhouxuan78;xutianlong1;royccc;hongyiliu111 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Add pypto.conv_backward_filter interface to compute the gradient of convolution with respect to the weight tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_filter frontend interface with parameter validation - Implement ConvBackwardFilter 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!6752 | 29 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 21 days ago | ||
| 3 days ago | ||
| 2 days ago | ||
| 3 days ago | ||
| 18 days ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 2 days ago | ||
| 1 day ago | ||
| 16 days ago | ||
| 4 days ago | ||
| 1 day ago | ||
| 4 months ago | ||
| 2 days ago | ||
| 2 days ago | ||
| 8 days ago | ||
| 29 days ago |