| Files | Last commit | Last update |
|---|---|---|
fix(machine): fix log quality issues in machine module. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5679 merge pyptolog_fix into master fix(machine): fix log quality issues in machine module. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: PyPTO machine 模块日志整改 See merge request: cann/pypto!5679 | 3 months ago | |
perf(machine): CSE loop-invariant shape dims in SetExprBatch Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5005 merge perf/expr-cse-setexprbatch into master perf(machine): CSE loop-invariant shape dims in SetExprBatch Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): CSE loop-invariant shape dims in SetExprBatch Hoist loop-invariant shape-dimension evaluation out of SetExprBatch emit path, and add -march=armv8-a for aarch64 AICPU compiles. Also preserves value-depend CF-cache behavior after BuildControlFlow refactor: - Still emit RUNTIME_RootStitch(RUNTIME_FUNCKEY_CACHESTOP) at DYNAMIC_LOOP / EXECUTE_GRAPH value-depend sites - Still set disableCtrlFlowCache for host launchers that skip CF cache build CACHESTOP (device stitch) and disableCtrlFlowCache (program header flag) are complementary, not interchangeable: CACHESTOP stops an in-progress recording; disableCtrlFlowCache asks host not to start/reuse CF cache. Changes: - CSE for invariant dims in backend / expr_generator / symbolic_scalar - UT for expr generator CSE behavior - Armv8-a march flag for aarch64 device compiles - Restore CACHESTOP emit in MarkValueDependDisableCache with clarifying comments Related Issues: N/A See merge request: cann/pypto!5005 | 4 months ago | |
fix(machine): fix log quality issues in machine module. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5679 merge pyptolog_fix into master fix(machine): fix log quality issues in machine module. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: PyPTO machine 模块日志整改 See merge request: cann/pypto!5679 | 3 months ago | |
perf(machine): CSE loop-invariant shape dims in SetExprBatch Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5005 merge perf/expr-cse-setexprbatch into master perf(machine): CSE loop-invariant shape dims in SetExprBatch Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): CSE loop-invariant shape dims in SetExprBatch Hoist loop-invariant shape-dimension evaluation out of SetExprBatch emit path, and add -march=armv8-a for aarch64 AICPU compiles. Also preserves value-depend CF-cache behavior after BuildControlFlow refactor: - Still emit RUNTIME_RootStitch(RUNTIME_FUNCKEY_CACHESTOP) at DYNAMIC_LOOP / EXECUTE_GRAPH value-depend sites - Still set disableCtrlFlowCache for host launchers that skip CF cache build CACHESTOP (device stitch) and disableCtrlFlowCache (program header flag) are complementary, not interchangeable: CACHESTOP stops an in-progress recording; disableCtrlFlowCache asks host not to start/reuse CF cache. Changes: - CSE for invariant dims in backend / expr_generator / symbolic_scalar - UT for expr generator CSE behavior - Armv8-a march flag for aarch64 device compiles - Restore CACHESTOP emit in MarkValueDependDisableCache with clarifying comments Related Issues: N/A See merge request: cann/pypto!5005 | 4 months ago | |
feat(dfx): Runtime memory overlap check Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !5107 merge duanhaotian7 into master feat(dfx): Runtime memory overlap check Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: dump运行时各个op的读写信息以及每个op的读写范围大小并dump运行时整体内存使用情况统计,基于相关dump数据和topo序,设计内存重叠检测脚本,检测是否存在 内存重叠 See merge request: cann/pypto!5107 | 3 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 | |
perf(machine): CSE loop-invariant shape dims in SetExprBatch Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5005 merge perf/expr-cse-setexprbatch into master perf(machine): CSE loop-invariant shape dims in SetExprBatch Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): CSE loop-invariant shape dims in SetExprBatch Hoist loop-invariant shape-dimension evaluation out of SetExprBatch emit path, and add -march=armv8-a for aarch64 AICPU compiles. Also preserves value-depend CF-cache behavior after BuildControlFlow refactor: - Still emit RUNTIME_RootStitch(RUNTIME_FUNCKEY_CACHESTOP) at DYNAMIC_LOOP / EXECUTE_GRAPH value-depend sites - Still set disableCtrlFlowCache for host launchers that skip CF cache build CACHESTOP (device stitch) and disableCtrlFlowCache (program header flag) are complementary, not interchangeable: CACHESTOP stops an in-progress recording; disableCtrlFlowCache asks host not to start/reuse CF cache. Changes: - CSE for invariant dims in backend / expr_generator / symbolic_scalar - UT for expr generator CSE behavior - Armv8-a march flag for aarch64 device compiles - Restore CACHESTOP emit in MarkValueDependDisableCache with clarifying comments Related Issues: N/A See merge request: cann/pypto!5005 | 4 months ago | |
perf(machine): CSE loop-invariant shape dims in SetExprBatch Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5005 merge perf/expr-cse-setexprbatch into master perf(machine): CSE loop-invariant shape dims in SetExprBatch Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): CSE loop-invariant shape dims in SetExprBatch Hoist loop-invariant shape-dimension evaluation out of SetExprBatch emit path, and add -march=armv8-a for aarch64 AICPU compiles. Also preserves value-depend CF-cache behavior after BuildControlFlow refactor: - Still emit RUNTIME_RootStitch(RUNTIME_FUNCKEY_CACHESTOP) at DYNAMIC_LOOP / EXECUTE_GRAPH value-depend sites - Still set disableCtrlFlowCache for host launchers that skip CF cache build CACHESTOP (device stitch) and disableCtrlFlowCache (program header flag) are complementary, not interchangeable: CACHESTOP stops an in-progress recording; disableCtrlFlowCache asks host not to start/reuse CF cache. Changes: - CSE for invariant dims in backend / expr_generator / symbolic_scalar - UT for expr generator CSE behavior - Armv8-a march flag for aarch64 device compiles - Restore CACHESTOP emit in MarkValueDependDisableCache with clarifying comments Related Issues: N/A See merge request: cann/pypto!5005 | 4 months ago | |
feat(machine): Add yield scalar expr support for IfStmt and ForStmt Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !5465 merge feat/if-for-yield-scalar-expr into master feat(machine): Add yield scalar expr support for IfStmt and ForStmt Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: feat(machine): Add yield scalar expr support for IfStmt and ForStmt Enhance new IR control flow codegen to generate symbolic assignment for scalar yield values in IfStmt and ForStmt branches. Previously only ForStmt loopVar was registered to symbolTable; now scalar returnVars from both IfStmt and ForStmt are registered, and YieldStmt values are converted to VALUE_xxx = expr; in controlFlow cpp. Changes: - Register scalar returnVars to symbolTable in FindExprFromIfStmt and FindExprFromForStmt - Collect yield value symbols in FindExprFromIRStmt YieldStmt case - Add currentReturnVars parameter to VisitIRStmtForControlFlow for passing returnVars through recursion - Generate VALUE_xxx = expr; in controlFlow cpp for scalar YieldStmt values - Skip tensor type returnVars and yield values via ScalarType check - Add 10 UT test cases covering symbol registration, yield codegen, nested isolation, tensor skip, backward compat - Add ST test with if/else + for loop yielding constant and symbolic expression as loop bounds Related Issues: N/A See merge request: cann/pypto!5465 | 3 months ago | |
feat(machine): Add yield scalar expr support for IfStmt and ForStmt Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !5465 merge feat/if-for-yield-scalar-expr into master feat(machine): Add yield scalar expr support for IfStmt and ForStmt Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: feat(machine): Add yield scalar expr support for IfStmt and ForStmt Enhance new IR control flow codegen to generate symbolic assignment for scalar yield values in IfStmt and ForStmt branches. Previously only ForStmt loopVar was registered to symbolTable; now scalar returnVars from both IfStmt and ForStmt are registered, and YieldStmt values are converted to VALUE_xxx = expr; in controlFlow cpp. Changes: - Register scalar returnVars to symbolTable in FindExprFromIfStmt and FindExprFromForStmt - Collect yield value symbols in FindExprFromIRStmt YieldStmt case - Add currentReturnVars parameter to VisitIRStmtForControlFlow for passing returnVars through recursion - Generate VALUE_xxx = expr; in controlFlow cpp for scalar YieldStmt values - Skip tensor type returnVars and yield values via ScalarType check - Add 10 UT test cases covering symbol registration, yield codegen, nested isolation, tensor skip, backward compat - Add ST test with if/else + for loop yielding constant and symbolic expression as loop bounds Related Issues: N/A See merge request: cann/pypto!5465 | 3 months ago | |
fix(codegen): Propagate parallel task exceptions instead of swallowing them Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5266 merge compile_fix into master fix(codegen): Propagate parallel task exceptions instead of swallowing them Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 多线程 Codegen 确定性 Kernel 编译 Related Issue:[https://gitcode.com/cann/pypto/issues/2913](https://gitcode.com/cann/pypto/issues/2913) 2. Issue 背景:GenCode 内的 ExecuteParallelCompile 编译失败抛出 COMPILE_CODE_FAILED 被吞掉,leafDict[hash] = leaf 未执行,leafDict不完整。下游 ConstructCodeInfo → RunCompileAicoreKernelStage → RunEncodeStage 继续访问不完整的 leafDict,触发 std::unordered_map::at() 越界,抛出 F00003 RuntimeError: _Map_base::at 二次异常,掩盖了真实的编译错误 根因:codeGen在并行编译遇到错误抛出异常时,只记录日志,并不传播异常和终止剩余task,导致报错在第二现场F00003 RuntimeError: _Map_base::at处 解决方法:修改 ParallelExecuteAndWait,使其在 task 失败时记录错误、提前终止剩余 task、并在所有线程 join 后重新抛出首个 COMPILE_CODE_FAILED异常 修改前:  修改后:  See merge request: cann/pypto!5266 | 3 months ago | |
fix(codegen): Propagate parallel task exceptions instead of swallowing them Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5266 merge compile_fix into master fix(codegen): Propagate parallel task exceptions instead of swallowing them Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 多线程 Codegen 确定性 Kernel 编译 Related Issue:[https://gitcode.com/cann/pypto/issues/2913](https://gitcode.com/cann/pypto/issues/2913) 2. Issue 背景:GenCode 内的 ExecuteParallelCompile 编译失败抛出 COMPILE_CODE_FAILED 被吞掉,leafDict[hash] = leaf 未执行,leafDict不完整。下游 ConstructCodeInfo → RunCompileAicoreKernelStage → RunEncodeStage 继续访问不完整的 leafDict,触发 std::unordered_map::at() 越界,抛出 F00003 RuntimeError: _Map_base::at 二次异常,掩盖了真实的编译错误 根因:codeGen在并行编译遇到错误抛出异常时,只记录日志,并不传播异常和终止剩余task,导致报错在第二现场F00003 RuntimeError: _Map_base::at处 解决方法:修改 ParallelExecuteAndWait,使其在 task 失败时记录错误、提前终止剩余 task、并在所有线程 join 后重新抛出首个 COMPILE_CODE_FAILED异常 修改前:  修改后:  See merge request: cann/pypto!5266 | 3 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 | |
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 |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago |