| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
test: 补充reg_func算子UT覆盖缺失分支(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !1953 merge ut/issue210-reg-func-remainder-dv into develop test: 补充reg_func算子UT覆盖缺失分支(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 补充 autofuse/ascir/reg_func 目录多个算子的单元测试,使得该目录下UT覆盖率本地自测达到95.7%覆盖此前未触达的分支(Issue #210 reg_func 部分第一批提交): | 源文件 | 新增用例 | 覆盖分支 | 行覆盖率 | |---|---|---|---| | remainder.cpp | WhenSecondInputIsTensor | 第二输入为普通 tensor 时的 3×dtype×size 计算 | 52.9% → 100% | | reduce.cpp | WhenNodeTypeIsArgMax / WhenNodeTypeIsArgMaxMultiRPhase1 | ArgMax 系算子的多 tmp_buf 分配(生命周期 -1,0,1,2 / -1,0,1) | 83.1% → 100% | | truediv.cpp | WhenSecondInputIsUbScalar | HasScalarOrUbScalar 为 true 的默认大小路径 | 90.9% → 100% | | compare.cpp | WhenTwoAxesAndBf16Dtype | 双向量化轴 + BF16 dtype 的默认大小回退 | 98.7% → 100% | | default_reg_func.cpp / rsqrt.cpp | WhenInputIsAllScalar | GetInputDataSizeTmpBuffer 全标量输入的 fallback | 98.6% → 100% | lcov 实测:六个文件合计 237/237 行、23/23 函数,100%。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 运行 CalcRemainderTmpSizeTest / CalcReduceTmpSizeTest / CalcTrueDivTmpSizeTest / CalcCompareTmpSizeTest / CalcRsqrtTmpSizeTest 新增用例全部通过 3. lcov 收集验证上述六个文件行覆盖率 100% ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format 已执行) - [x] 我已对代码进行了自测(新增 5 用例 PASSED,覆盖率 100%) - [x] 我已更新了相关的文档(本次无文档变更) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 split.cpp 保持 94.7%(剩余 1 行为 IsAllStaticAligned 内层符号乘积,需要动态输出构图机制,投入产出比低);argmax/argmax_with_value/zerosLike 为无调用方的遗留死代码(12 行),建议另行确认删除。 See merge request: cann/graph-autofusion!1953 | 8 天前 | |
test: 补充ascir目录UT并清理无调用reg_func文件(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !2001 merge ut/issue210-final-batch into develop test: 补充ascir目录UT并清理无调用reg_func文件(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 Issue #210 收官批次:补充 generator/meta 目录大批单元测试,并清理 reg_func 无调用遗留文件。 **新增测试(4 个文件):** | 源文件 | 新增内容 | 覆盖效果 | |---|---|---| | generator/v1_ascir_codegen_impl.h | 61 类元数据断言 + policy 探针(unary/binary/trinary/reduce/matmul 五族构图调用 CalcTmpBufSize/IsNodeValid/IsInplace/IsBrcInline) | ~25% → **95.4%**(函数 99.1%) | | generator/v1_ascir_att_impl.h | 从 26 类扩展到 77 类全量契约断言 | 行覆盖 **100%** | | meta/ascir_utils.cpp | DebugImplGraphStr 全家桶构图(exec_condition/compute_unit/queue/buffer 内存渲染)+ dtype 变体 + tmp_buffers + dump 前缀环境用例 | 77.6% → **89.3%**(函数 100% 55/55) | | meta/ascendc_graph_txt_dumper.cpp | 子图模式(_VfSubgraph_ 命名)+ Scalar/broadcast/workspace 构图走 DumpLoopExecutionView 深链 + GetDtypeInfo 全枚举 | 78.4% → **89.2%**(函数 98.4%) | **死代码清理:** 删除 argmax.cpp/argmax_with_value.cpp/zerosLike.cpp 及 defalut_reg_func.h 对应声明——三个文件的 Calc<T>TmpSize 在全仓库无任何调用方(ZerosLike 算子注册亦不存在),为迁移遗留死代码。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 全量 801 用例通过(本地实测 795 PASSED + 6 历史 DISABLED,0 失败) 3. lcov 四二进制口径:三目录合计 **94.3%**(3089/3277 行;framework 全量含 py_module/e2e 预期更高) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format --dry-run --Werror 零警告) - [x] 我已对代码进行了自测(801 用例全过,pre-commit 8 钩子全 Passed) - [x] 我已更新了相关的文档(本次无文档变更;CMakeLists 按仓库先例补充许可头) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 #1953(reg_func)、#1985(generator 前哨)、#1997(codegen 元数据)同属 Issue #210 分批交付,本 PR 为收官批次。剩余少量深渲染分支(~24 行)待 CI 增量覆盖率报告确认后按需补齐。 See merge request: cann/graph-autofusion!2001 | 10 小时前 | |
v1补充注册 Unsupported ASCIR 算子及占位 codegen Co-authored-by: weishitoken<huangqianqian15@huawei.com> # message auto-generated for no-merge-commit merge: !1767 merge fix/skip-unsupported-dtype-inference into develop fix: v1补充注册 Unsupported ASCIR 算子及占位 codegen Created-by: wei_shi Commit-by: weishitoken Merged-by: cann-robot Description: # Pull Request ## 描述 为 ASCIR 的 Unsupported 占位节点补齐 V1 注册与代码生成占位实现,支持无输入起始节点在图中被识别和保留,同时避免为该节点生成实际 AscendC API 调用,解决var_mean调用过程中因v1中缺少Unsupported节点注册而导致的断言失败。 ## 变更类型 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 1. 检查 autofuse/ascir/generator/ascir_builtin_ops_v1.cpp 中新增的 Unsupported ASCIR 注册,确认其无输入、单输出、标记为起始节点,并使用无性能信息的属性 stub。 2. 检查 autofuse/ascir/generator/v1_ascir_codegen_impl.h 中的 UnsupportedAscIrCodegenImpl,确认 API 调用名为空且 API 名称为 Unsupported。 3. 当前环境未执行完整构建和测试。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [ ] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 修改以下两个文件: - autofuse/ascir/generator/ascir_builtin_ops_v1.cpp:注册 Unsupported ASCIR 算子,并配置无输入起始节点及空性能信息。 - autofuse/ascir/generator/v1_ascir_codegen_impl.h:新增 UnsupportedAscIrCodegenImpl,为该节点提供不生成实际 API 调用的占位 codegen。 See merge request: cann/graph-autofusion!1767 | 28 天前 | |
【PR】: [feat] 添加图级别的sched信息,并新增对应的python/序列化/dump接口. Co-authored-by: xingzhixiong<xingzhixiong@huawei.com> # message auto-generated for no-merge-commit merge: !1790 merge develop_transpose_one_set_axis into develop 【PR】: [feat] 添加图级别的sched信息,并新增对应的python/序列化/dump接口. Created-by: xingzhixiong Commit-by: xingzhixiong Merged-by: cann-robot Description: # Pull Request ## 描述 给ascgraph新增图级schedInfo,同时提供对外的getter/setter接口,为后续将node级schedInfo收编成图级schedInfo做铺垫。 当前新增图级接口之后,在schedule的入口处先将图级的schedInfo下发给node级schedInfo,保持内部逻辑先不动,等后续node级schedInfo全部收编完成后再一把切换。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. inductor+af流程,前端保持老流程不动,所有inductor+af用例和网络均不受影响,验证兼容性 2. inductor+af流程,前端将设置node级sched.axis接口改为直接设置图级sched.axis接口,所有inductor+af用例和网络仍不受影响,验证新接口无问题 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/graph-autofusion!1790 | 13 天前 | |
【PR】: 重构,使用InsertNode收编节点插入行为 Co-authored-by: 盛楠<titan.sheng@huawei.com> # message auto-generated for no-merge-commit merge: !1677 merge f0806 into develop 【PR】: 重构,使用InsertNode收编节点插入行为 Created-by: shengnan666 Commit-by: 盛楠 Merged-by: cann-robot Description: # Pull Request ## 描述 使用InsertNode收编节点插入行为 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. 2. ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/graph-autofusion!1677 | 1 个月前 | |
【PR】: [fix] [autofuse] modify the header files with the same names as ge and metadef. Co-authored-by: xingzhixiong<xingzhixiong@huawei.com> # message auto-generated for no-merge-commit merge: !1300 merge develop_change_same_name_headers into develop 【PR】: [fix] [autofuse] modify the header files with the same names as ge and metadef. Created-by: xingzhixiong Commit-by: xingzhixiong Merged-by: cann-robot Description: # Pull Request ## 描述 修改gaf仓与ge仓以及metadef仓同名的头文件。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. ci流水线pass 2. RDV pass ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/graph-autofusion!1300 | 1 个月前 | |
test: 补充ascir目录UT并清理无调用reg_func文件(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !2001 merge ut/issue210-final-batch into develop test: 补充ascir目录UT并清理无调用reg_func文件(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 Issue #210 收官批次:补充 generator/meta 目录大批单元测试,并清理 reg_func 无调用遗留文件。 **新增测试(4 个文件):** | 源文件 | 新增内容 | 覆盖效果 | |---|---|---| | generator/v1_ascir_codegen_impl.h | 61 类元数据断言 + policy 探针(unary/binary/trinary/reduce/matmul 五族构图调用 CalcTmpBufSize/IsNodeValid/IsInplace/IsBrcInline) | ~25% → **95.4%**(函数 99.1%) | | generator/v1_ascir_att_impl.h | 从 26 类扩展到 77 类全量契约断言 | 行覆盖 **100%** | | meta/ascir_utils.cpp | DebugImplGraphStr 全家桶构图(exec_condition/compute_unit/queue/buffer 内存渲染)+ dtype 变体 + tmp_buffers + dump 前缀环境用例 | 77.6% → **89.3%**(函数 100% 55/55) | | meta/ascendc_graph_txt_dumper.cpp | 子图模式(_VfSubgraph_ 命名)+ Scalar/broadcast/workspace 构图走 DumpLoopExecutionView 深链 + GetDtypeInfo 全枚举 | 78.4% → **89.2%**(函数 98.4%) | **死代码清理:** 删除 argmax.cpp/argmax_with_value.cpp/zerosLike.cpp 及 defalut_reg_func.h 对应声明——三个文件的 Calc<T>TmpSize 在全仓库无任何调用方(ZerosLike 算子注册亦不存在),为迁移遗留死代码。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 全量 801 用例通过(本地实测 795 PASSED + 6 历史 DISABLED,0 失败) 3. lcov 四二进制口径:三目录合计 **94.3%**(3089/3277 行;framework 全量含 py_module/e2e 预期更高) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format --dry-run --Werror 零警告) - [x] 我已对代码进行了自测(801 用例全过,pre-commit 8 钩子全 Passed) - [x] 我已更新了相关的文档(本次无文档变更;CMakeLists 按仓库先例补充许可头) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 #1953(reg_func)、#1985(generator 前哨)、#1997(codegen 元数据)同属 Issue #210 分批交付,本 PR 为收官批次。剩余少量深渲染分支(~24 行)待 CI 增量覆盖率报告确认后按需补齐。 See merge request: cann/graph-autofusion!2001 | 10 小时前 | |
test: 补充ascir目录UT并清理无调用reg_func文件(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !2001 merge ut/issue210-final-batch into develop test: 补充ascir目录UT并清理无调用reg_func文件(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 Issue #210 收官批次:补充 generator/meta 目录大批单元测试,并清理 reg_func 无调用遗留文件。 **新增测试(4 个文件):** | 源文件 | 新增内容 | 覆盖效果 | |---|---|---| | generator/v1_ascir_codegen_impl.h | 61 类元数据断言 + policy 探针(unary/binary/trinary/reduce/matmul 五族构图调用 CalcTmpBufSize/IsNodeValid/IsInplace/IsBrcInline) | ~25% → **95.4%**(函数 99.1%) | | generator/v1_ascir_att_impl.h | 从 26 类扩展到 77 类全量契约断言 | 行覆盖 **100%** | | meta/ascir_utils.cpp | DebugImplGraphStr 全家桶构图(exec_condition/compute_unit/queue/buffer 内存渲染)+ dtype 变体 + tmp_buffers + dump 前缀环境用例 | 77.6% → **89.3%**(函数 100% 55/55) | | meta/ascendc_graph_txt_dumper.cpp | 子图模式(_VfSubgraph_ 命名)+ Scalar/broadcast/workspace 构图走 DumpLoopExecutionView 深链 + GetDtypeInfo 全枚举 | 78.4% → **89.2%**(函数 98.4%) | **死代码清理:** 删除 argmax.cpp/argmax_with_value.cpp/zerosLike.cpp 及 defalut_reg_func.h 对应声明——三个文件的 Calc<T>TmpSize 在全仓库无任何调用方(ZerosLike 算子注册亦不存在),为迁移遗留死代码。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 全量 801 用例通过(本地实测 795 PASSED + 6 历史 DISABLED,0 失败) 3. lcov 四二进制口径:三目录合计 **94.3%**(3089/3277 行;framework 全量含 py_module/e2e 预期更高) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format --dry-run --Werror 零警告) - [x] 我已对代码进行了自测(801 用例全过,pre-commit 8 钩子全 Passed) - [x] 我已更新了相关的文档(本次无文档变更;CMakeLists 按仓库先例补充许可头) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 #1953(reg_func)、#1985(generator 前哨)、#1997(codegen 元数据)同属 Issue #210 分批交付,本 PR 为收官批次。剩余少量深渲染分支(~24 行)待 CI 增量覆盖率报告确认后按需补齐。 See merge request: cann/graph-autofusion!2001 | 10 小时前 | |
test: 补充ascir目录UT并清理无调用reg_func文件(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !2001 merge ut/issue210-final-batch into develop test: 补充ascir目录UT并清理无调用reg_func文件(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 Issue #210 收官批次:补充 generator/meta 目录大批单元测试,并清理 reg_func 无调用遗留文件。 **新增测试(4 个文件):** | 源文件 | 新增内容 | 覆盖效果 | |---|---|---| | generator/v1_ascir_codegen_impl.h | 61 类元数据断言 + policy 探针(unary/binary/trinary/reduce/matmul 五族构图调用 CalcTmpBufSize/IsNodeValid/IsInplace/IsBrcInline) | ~25% → **95.4%**(函数 99.1%) | | generator/v1_ascir_att_impl.h | 从 26 类扩展到 77 类全量契约断言 | 行覆盖 **100%** | | meta/ascir_utils.cpp | DebugImplGraphStr 全家桶构图(exec_condition/compute_unit/queue/buffer 内存渲染)+ dtype 变体 + tmp_buffers + dump 前缀环境用例 | 77.6% → **89.3%**(函数 100% 55/55) | | meta/ascendc_graph_txt_dumper.cpp | 子图模式(_VfSubgraph_ 命名)+ Scalar/broadcast/workspace 构图走 DumpLoopExecutionView 深链 + GetDtypeInfo 全枚举 | 78.4% → **89.2%**(函数 98.4%) | **死代码清理:** 删除 argmax.cpp/argmax_with_value.cpp/zerosLike.cpp 及 defalut_reg_func.h 对应声明——三个文件的 Calc<T>TmpSize 在全仓库无任何调用方(ZerosLike 算子注册亦不存在),为迁移遗留死代码。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 全量 801 用例通过(本地实测 795 PASSED + 6 历史 DISABLED,0 失败) 3. lcov 四二进制口径:三目录合计 **94.3%**(3089/3277 行;framework 全量含 py_module/e2e 预期更高) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format --dry-run --Werror 零警告) - [x] 我已对代码进行了自测(801 用例全过,pre-commit 8 钩子全 Passed) - [x] 我已更新了相关的文档(本次无文档变更;CMakeLists 按仓库先例补充许可头) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 #1953(reg_func)、#1985(generator 前哨)、#1997(codegen 元数据)同属 Issue #210 分批交付,本 PR 为收官批次。剩余少量深渲染分支(~24 行)待 CI 增量覆盖率报告确认后按需补齐。 See merge request: cann/graph-autofusion!2001 | 10 小时前 | |
test: 补充ascir_common与ascir_att_impl单元测试(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !1985 merge ut/issue210-generator-common into develop test: 补充ascir_common与ascir_att_impl单元测试(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 补充 autofuse/ascir/generator 目录的单元测试(Issue #210 generator 部分第一批提交): | 源文件 | 新增内容 | 覆盖目标 | 行覆盖率 | |---|---|---|---| | ascir_common.cpp | 4 个用例 | GetConversionFromDtypeMap 的输入/输出 dtype 命中映射分支;IsAllVecAxisContinuous 的输入/输出双向量化轴连续性判断(连续为真、输入侧非连续、输出侧非连续) | 85.7% → **100%** | | v1_ascir_att_impl.h | 26 个算子类契约断言 | 各 XAscIrAttImpl 的 GetApiPerf / GetAscendCApiPerfTable 返回自身 IR 名(宏生成类,防止算子改名/宏重构引入回归) | 63.6% → 77.9% | 变更含 CMakeLists 接线:test_ascir_ut 新增 2 个测试文件与 ${CODE_ROOT_DIR}/ascir/generator include 路径。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 运行 AscirCommonTest(4 用例)与 AscIrAttImplTest(3 组共 26 类断言)全部通过 3. lcov 收集验证 ascir_common.cpp 行覆盖率 100%(98/98 行、12/12 函数) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format 已执行) - [x] 我已对代码进行了自测(7 用例 PASSED,ascir_common 覆盖率 100%) - [x] 我已更新了相关的文档(本次无文档变更) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 PR #1953(reg_func 部分)同属 Issue #210 的分批交付,本 PR 为 generator 目录首批。 See merge request: cann/graph-autofusion!1985 | 8 天前 | |
style: 统一 Autofuse 代码格式 Co-authored-by: Ling-DT<lingxing@huawei.com> # message auto-generated for no-merge-commit merge: !921 merge style/clang-format-autofuse-20260611 into develop style: 统一 Autofuse 代码格式 Created-by: ling-DT Commit-by: Ling-DT Merged-by: cann-robot Description: # Pull Request ## 描述 基于 cann/graph-autofusion:develop 最新提交 46a23b0,使用仓库根目录 .clang-format 对 autofuse/ 目录内受版本管理的 C/C++/AscendC 源文件执行统一格式化。 本 PR 仅包含 autofuse/ 目录格式化变更;super_kernel/ 目录格式化变更按要求暂留本地,未提交到本 PR。 格式化工具:clang-format 18.1.8,参数:--style=file。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [x] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无。 ## 如何测试 描述测试此变更的步骤和前提条件: 1. /tmp/opencode/clang-format-18-venv/bin/clang-format -i --style=file <autofuse C/C++/AscendC files> 2. git diff --cached --check 3. git diff --name-only HEAD~1..HEAD | cut -d/ -f1 | sort | uniq -c 确认 PR 提交仅包含 autofuse/。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 为纯格式化变更,不涉及功能逻辑、接口、构建脚本或打包内容修改。 See merge request: cann/graph-autofusion!921 | 2 个月前 | |
test: 补充ascir目录UT并清理无调用reg_func文件(#210) Co-authored-by: hitLeechi<25s103542@stu.hit.edu.cn> # message auto-generated for no-merge-commit merge: !2001 merge ut/issue210-final-batch into develop test: 补充ascir目录UT并清理无调用reg_func文件(#210) Created-by: hitLeechi Commit-by: hitLeechi Merged-by: cann-robot Description: # Pull Request ## 描述 Issue #210 收官批次:补充 generator/meta 目录大批单元测试,并清理 reg_func 无调用遗留文件。 **新增测试(4 个文件):** | 源文件 | 新增内容 | 覆盖效果 | |---|---|---| | generator/v1_ascir_codegen_impl.h | 61 类元数据断言 + policy 探针(unary/binary/trinary/reduce/matmul 五族构图调用 CalcTmpBufSize/IsNodeValid/IsInplace/IsBrcInline) | ~25% → **95.4%**(函数 99.1%) | | generator/v1_ascir_att_impl.h | 从 26 类扩展到 77 类全量契约断言 | 行覆盖 **100%** | | meta/ascir_utils.cpp | DebugImplGraphStr 全家桶构图(exec_condition/compute_unit/queue/buffer 内存渲染)+ dtype 变体 + tmp_buffers + dump 前缀环境用例 | 77.6% → **89.3%**(函数 100% 55/55) | | meta/ascendc_graph_txt_dumper.cpp | 子图模式(_VfSubgraph_ 命名)+ Scalar/broadcast/workspace 构图走 DumpLoopExecutionView 深链 + GetDtypeInfo 全枚举 | 78.4% → **89.2%**(函数 98.4%) | **死代码清理:** 删除 argmax.cpp/argmax_with_value.cpp/zerosLike.cpp 及 defalut_reg_func.h 对应声明——三个文件的 Calc<T>TmpSize 在全仓库无任何调用方(ZerosLike 算子注册亦不存在),为迁移遗留死代码。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #210 ## 如何测试 1. sh build.sh -u --module=autofuse_framework -j 8 2. 全量 801 用例通过(本地实测 795 PASSED + 6 历史 DISABLED,0 失败) 3. lcov 四二进制口径:三目录合计 **94.3%**(3089/3277 行;framework 全量含 py_module/e2e 预期更高) ## 核对清单 - [x] 我的代码遵循了项目的代码风格(clang-format --dry-run --Werror 零警告) - [x] 我已对代码进行了自测(801 用例全过,pre-commit 8 钩子全 Passed) - [x] 我已更新了相关的文档(本次无文档变更;CMakeLists 按仓库先例补充许可头) - [x] 我在标题中使用了合适的类型标签(test:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 与 #1953(reg_func)、#1985(generator 前哨)、#1997(codegen 元数据)同属 Issue #210 分批交付,本 PR 为收官批次。剩余少量深渲染分支(~24 行)待 CI 增量覆盖率报告确认后按需补齐。 See merge request: cann/graph-autofusion!2001 | 10 小时前 | |
【PR】: [fix] [autofuse] modify the header files with the same names as ge and metadef. Co-authored-by: xingzhixiong<xingzhixiong@huawei.com> # message auto-generated for no-merge-commit merge: !1300 merge develop_change_same_name_headers into develop 【PR】: [fix] [autofuse] modify the header files with the same names as ge and metadef. Created-by: xingzhixiong Commit-by: xingzhixiong Merged-by: cann-robot Description: # Pull Request ## 描述 修改gaf仓与ge仓以及metadef仓同名的头文件。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. ci流水线pass 2. RDV pass ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/graph-autofusion!1300 | 1 个月前 | |
style: 统一 Autofuse 代码格式 Co-authored-by: Ling-DT<lingxing@huawei.com> # message auto-generated for no-merge-commit merge: !921 merge style/clang-format-autofuse-20260611 into develop style: 统一 Autofuse 代码格式 Created-by: ling-DT Commit-by: Ling-DT Merged-by: cann-robot Description: # Pull Request ## 描述 基于 cann/graph-autofusion:develop 最新提交 46a23b0,使用仓库根目录 .clang-format 对 autofuse/ 目录内受版本管理的 C/C++/AscendC 源文件执行统一格式化。 本 PR 仅包含 autofuse/ 目录格式化变更;super_kernel/ 目录格式化变更按要求暂留本地,未提交到本 PR。 格式化工具:clang-format 18.1.8,参数:--style=file。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [x] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无。 ## 如何测试 描述测试此变更的步骤和前提条件: 1. /tmp/opencode/clang-format-18-venv/bin/clang-format -i --style=file <autofuse C/C++/AscendC files> 2. git diff --cached --check 3. git diff --name-only HEAD~1..HEAD | cut -d/ -f1 | sort | uniq -c 确认 PR 提交仅包含 autofuse/。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 为纯格式化变更,不涉及功能逻辑、接口、构建脚本或打包内容修改。 See merge request: cann/graph-autofusion!921 | 2 个月前 | |
style: 统一 Autofuse 代码格式 Co-authored-by: Ling-DT<lingxing@huawei.com> # message auto-generated for no-merge-commit merge: !921 merge style/clang-format-autofuse-20260611 into develop style: 统一 Autofuse 代码格式 Created-by: ling-DT Commit-by: Ling-DT Merged-by: cann-robot Description: # Pull Request ## 描述 基于 cann/graph-autofusion:develop 最新提交 46a23b0,使用仓库根目录 .clang-format 对 autofuse/ 目录内受版本管理的 C/C++/AscendC 源文件执行统一格式化。 本 PR 仅包含 autofuse/ 目录格式化变更;super_kernel/ 目录格式化变更按要求暂留本地,未提交到本 PR。 格式化工具:clang-format 18.1.8,参数:--style=file。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [x] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无。 ## 如何测试 描述测试此变更的步骤和前提条件: 1. /tmp/opencode/clang-format-18-venv/bin/clang-format -i --style=file <autofuse C/C++/AscendC files> 2. git diff --cached --check 3. git diff --name-only HEAD~1..HEAD | cut -d/ -f1 | sort | uniq -c 确认 PR 提交仅包含 autofuse/。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 为纯格式化变更,不涉及功能逻辑、接口、构建脚本或打包内容修改。 See merge request: cann/graph-autofusion!921 | 2 个月前 | |
feat: support IndexExpr and Arange autofusion Co-authored-by: Jett_Woo<wujinteng1@huawei.com> # message auto-generated for no-merge-commit merge: !1961 merge index-expr-device-validation-pr into develop feat: support IndexExpr and Arange autofusion Created-by: Jett_Woo Commit-by: Jett_Woo Merged-by: cann-robot Description: # Pull Request ## 描述 支持 IndexExpr 和 Arange 自动融合,补充 ASCIR/Python 接口、调度与 codegen 支持,并完善设备验证、UT 和 Backend E2E 用例。Arange 仅保留连续物理布局,数学上的非单位 step 仍受支持。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [x] Bug 修复 - [x] 新功能 - [ ] 代码风格更新(格式化,局部变量) - [ ] 重构(既不修复错误也不增加功能的代码变动) - [x] 构建过程或辅助工具的变动 - [ ] 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 已完成 IndexExpr/Arange 相关 C++ 定向 UT,12 passed。 2. 已完成 device-validation Python 定向测试,259 passed;Ascend950 fused 精度验证有效 133 个 cell,其中 131 个通过,reduce_mask 的两个既有通用 Reduce codegen 问题仍按实测结果保留。 3. 已完成相关构建目标编译验证,构建并行度限制为 -j 8。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 基于远端 develop 分支新建。未包含 docs/、tool/、temp/、验证日志或生成产物。 See merge request: cann/graph-autofusion!1961 | 10 天前 | |
style: 统一 Autofuse 代码格式 Co-authored-by: Ling-DT<lingxing@huawei.com> # message auto-generated for no-merge-commit merge: !921 merge style/clang-format-autofuse-20260611 into develop style: 统一 Autofuse 代码格式 Created-by: ling-DT Commit-by: Ling-DT Merged-by: cann-robot Description: # Pull Request ## 描述 基于 cann/graph-autofusion:develop 最新提交 46a23b0,使用仓库根目录 .clang-format 对 autofuse/ 目录内受版本管理的 C/C++/AscendC 源文件执行统一格式化。 本 PR 仅包含 autofuse/ 目录格式化变更;super_kernel/ 目录格式化变更按要求暂留本地,未提交到本 PR。 格式化工具:clang-format 18.1.8,参数:--style=file。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [x] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无。 ## 如何测试 描述测试此变更的步骤和前提条件: 1. /tmp/opencode/clang-format-18-venv/bin/clang-format -i --style=file <autofuse C/C++/AscendC files> 2. git diff --cached --check 3. git diff --name-only HEAD~1..HEAD | cut -d/ -f1 | sort | uniq -c 确认 PR 提交仅包含 autofuse/。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 为纯格式化变更,不涉及功能逻辑、接口、构建脚本或打包内容修改。 See merge request: cann/graph-autofusion!921 | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 8 天前 | ||
| 10 小时前 | ||
| 28 天前 | ||
| 13 天前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 10 小时前 | ||
| 10 小时前 | ||
| 10 小时前 | ||
| 8 天前 | ||
| 2 个月前 | ||
| 10 小时前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 10 天前 | ||
| 2 个月前 |