| Files | Last commit | Last update |
|---|---|---|
style(all): Remove trailing whitespace and add missing EOF newlines Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4916 merge style-cpp into master style(all): Remove trailing whitespace and add missing EOF newlines Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Remove trailing whitespace and add missing EOF newlines See merge request: cann/pypto!4916 | 4 months ago | |
fix(pass): Add missing measurement units in APASS_LOG statements Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5409 merge fix-log-missing-units into master fix(pass): Add missing measurement units in APASS_LOG statements Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: fix(pass): Add missing measurement units in APASS_LOG statements CodeCheck reported 49 "missing measurement unit" violations in APASS_LOG statements under framework/src/passes. This PR adds unit annotations (bytes/cycles/bits) to 19 log statements that print real physical quantities (size, offset, memory, latency, clock, c0). Changes: - Add "bytes" unit to size/offset/memory/c0 fields in 14 log statements - Add "cycles" unit to clock/latency fields in 5 log statements - Add "bits" unit to bitmap total size in 3 log statements (large_bm.cpp) - Skip 4 false positives in split_reshape.cpp where stride/currentOffset are dimension values, not byte quantities See merge request: cann/pypto!5409 | 3 months ago | |
fix(pass): Add missing measurement units in APASS_LOG statements Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5409 merge fix-log-missing-units into master fix(pass): Add missing measurement units in APASS_LOG statements Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: fix(pass): Add missing measurement units in APASS_LOG statements CodeCheck reported 49 "missing measurement unit" violations in APASS_LOG statements under framework/src/passes. This PR adds unit annotations (bytes/cycles/bits) to 19 log statements that print real physical quantities (size, offset, memory, latency, clock, c0). Changes: - Add "bytes" unit to size/offset/memory/c0 fields in 14 log statements - Add "cycles" unit to clock/latency fields in 5 log statements - Add "bits" unit to bitmap total size in 3 log statements (large_bm.cpp) - Skip 4 false positives in split_reshape.cpp where stride/currentOffset are dimension values, not byte quantities See merge request: cann/pypto!5409 | 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 | |
fix(pass): Fix the condition of the warning of dump pass graph Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5220 merge strategy into master fix(pass): Fix the condition of the warning of dump pass graph Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: ## 描述 debug.dump_pass_graph 是针对当前启用的 Pass 策略配置的,但编译过程中 PassManager::RunPass() 还可能执行辅助策略。 修改前,WarnUnmatchedDumpPassGraph() 会在每个策略执行时进行校验。 因此,当 dump_pass_graph 中配置了主策略 PVC2_OOO 的合法 Pass, 例如 RemoveRedundantReshape 时,执行 FunctionUnroll 等辅助策略会因 找不到该 Pass 而产生误告警。 本修改仅在当前配置的主策略 config::GetPassStrategy() 中执行未匹配 Pass 校验。 ## 影响 - 避免辅助策略产生 dump_pass_graph 未匹配 Pass 的误告警。 - 主策略中配置了不存在或拼写错误的 Pass 时,仍会正常告警。 - 不影响 Pass 执行流程、计算图 dump 选择逻辑或编译产物。 See merge request: cann/pypto!5220 | 3 months ago | |
fix{pass}: Fix dynamic axis related problems Co-authored-by: KaiqiJin<jinkaiqi@huawei.com> # message auto-generated for no-merge-commit merge: !5411 merge master into master fix{pass}: Fix dynamic axis related problems Created-by: KaiqiJin Commit-by: KaiqiJin Merged-by: cann-robot Description: ## PR 描述 本次提交修复了 CommonUtils::SafeMultiplyShape 在处理动态 shape 时的语义缺失问题。该函数用于安全计算 shape 各维度乘积,并在乘法过程中检测 int64_t 溢出。此前实现默认将所有维度都作为普通整数参与乘法,仅对乘积溢出进行判断,但没有单独识别 -1 这一动态轴标记。在 PyPTO 中,shape 维度为 -1 表示该轴为动态轴,其真实大小在当前阶段无法静态确定,因此不能将其作为普通负数参与乘法计算。 ### 变更摘要 本次变更主要修复 CommonUtils::SafeMultiplyShape 在处理动态轴(值为 -1)时将其当作普通数值参与乘积计算的问题。当 Shape 中包含 -1 时,该函数现在直接返回 {-1, false},表示结果无法精确计算但不属于溢出场景。同时更新了调用方 SplitLargeFanoutTensor::CheckOverlapCoverage,对返回值 -1 进行判断,避免在动态 shape 场景下做出错误的覆盖判定。 ### 主要改动 SafeMultiplyShape 增加动态轴检测:在 framework/src/passes/pass_utils/pass_utils.h 的 SafeMultiplyShape 循环体内新增 dim == -1 的提前返回逻辑,直接返回 {-1, false},防止 -1 被当作普通数值参与乘法或溢出判断。 更新 SafeMultiplyShape 注释文档:补充了关于动态轴 -1 返回值语义的注释说明(返回 <-1, false> 表示无法精确计算但不溢出),使接口契约更清晰。 CheckOverlapCoverage 适配新返回值:在 framework/src/passes/tile_graph_pass/graph_optimization/split_large_fanout_tensor.cpp 中,对 SafeMultiplyShape 的两处调用结果增加了 area == -1 / lcmTileArea == -1 的短路判断,确保动态轴场景下函数正确返回 false 而不是继续执行无效计算。 ## 影响 修改后,SafeMultiplyShape 在遍历 shape 维度时会优先检查当前维度是否为 -1。一旦发现动态轴,函数立即返回 {-1, false}:其中 -1 表示乘积结果无法精确静态计算,false 表示该情况不属于数值溢出。这与动态 shape 的语义保持一致,也避免后续逻辑将动态轴误解释为负数乘积,或在极端情况下进入不符合预期的溢出判断分支。 该调整保留了原有空 shape、普通静态 shape、包含 0 的 shape,以及真实乘法溢出场景的处理方式。对于不包含动态轴的输入,函数仍按原逻辑计算维度乘积,并在超过 int64_t 可表示范围时返回 {0, true}。整体改动范围集中在公共工具函数内部,目的是让依赖该工具的 Pass 在面对动态 shape 时获得明确且一致的返回语义。 See merge request: cann/pypto!5411 | 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 | |
fix(pass): Add missing measurement units in APASS_LOG statements Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5409 merge fix-log-missing-units into master fix(pass): Add missing measurement units in APASS_LOG statements Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: fix(pass): Add missing measurement units in APASS_LOG statements CodeCheck reported 49 "missing measurement unit" violations in APASS_LOG statements under framework/src/passes. This PR adds unit annotations (bytes/cycles/bits) to 19 log statements that print real physical quantities (size, offset, memory, latency, clock, c0). Changes: - Add "bytes" unit to size/offset/memory/c0 fields in 14 log statements - Add "cycles" unit to clock/latency fields in 5 log statements - Add "bits" unit to bitmap total size in 3 log statements (large_bm.cpp) - Skip 4 false positives in split_reshape.cpp where stride/currentOffset are dimension values, not byte quantities See merge request: cann/pypto!5409 | 3 months ago | |
fix(pass): Add missing measurement units in APASS_LOG statements Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5409 merge fix-log-missing-units into master fix(pass): Add missing measurement units in APASS_LOG statements Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: fix(pass): Add missing measurement units in APASS_LOG statements CodeCheck reported 49 "missing measurement unit" violations in APASS_LOG statements under framework/src/passes. This PR adds unit annotations (bytes/cycles/bits) to 19 log statements that print real physical quantities (size, offset, memory, latency, clock, c0). Changes: - Add "bytes" unit to size/offset/memory/c0 fields in 14 log statements - Add "cycles" unit to clock/latency fields in 5 log statements - Add "bits" unit to bitmap total size in 3 log statements (large_bm.cpp) - Skip 4 false positives in split_reshape.cpp where stride/currentOffset are dimension values, not byte quantities See merge request: cann/pypto!5409 | 3 months ago | |
fix(machine): Correct incorrect format specifiers in the log messages Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !1363 merge log into master fix(machine): Correct incorrect format specifiers in the log messages Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 修改使用错误的格式说明符 See merge request: cann/pypto!1363 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 8 months ago |