| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
删除mc2 op_kernel扁平化__has_include守卫,3rd出包对齐op_kernel层级 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !11224 merge fix_2 into master 删除mc2 op_kernel扁平化__has_include守卫,3rd出包对齐op_kernel层级 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: ## 关联issue: https://gitcode.com/cann/ops-transformer/issues/4946 https://gitcode.com/cann/ops-transformer/issues/4304 ## 描述 承接 !10920(出包恢复 op_kernel 层级):CANN 包内算子/common/3rd 目录现与源码树结构完全一致,kernel 相对路径引用两边解析结果相同,扁平化双路径 __has_include 守卫成为死代码,本 PR 予以清理,并对齐 3rd 出包结构。 ### 改动内容 1. **删除 mc2 扁平化守卫(60 个文件,-360 行)** - 66 处双分支守卫(#if __has_include(扁平路径) ... #else ... #endif)→ 只保留 else 分支(源码树/新包统一路径) - 4 个 v3 算子 .cpp 的三分支守卫(#if/#elif/#else)→ 只保留 else 分支 - 保留非路径用途守卫:CANN 版本探测(version/asc_devkit_version.h 等 25 处)、API 探测(adv_api/hcomm/hcomm.h 等 8 处)、UT 环境(hccl_stub.h 2 处) 2. **cmake 3rd 出包补齐 op_kernel 层级** - custom_build.cmake 3rd install 目的地追加 /op_kernel,消除源码树(mc2/3rd/<lib>/op_kernel/)与包内(原 ascendc/3rd/<lib>/ 扁平)的 300 处相对引用路径不一致 - mc2/3rd 加入 OPS_TRANSFORMER_SHARED_KERNEL_INSTALL_DEPS 白名单(与 mc2/common 同等),消除 depend 安装循环产生的空目录 ascendc/3rd/op_kernel 3. **commAlg 注释 spelling 修复(关联 issue #4304,3 处 1 行)** - switchwing → switching:mc2/common/op_host/op_tiling/mc2_tiling_struct.h、mc2/common/op_kernel/mc2_tiling_struct.h、mc2/grouped_mat_mul_all_reduce/tests/ut/op_kernel/grouped_mat_mul_all_reduce_tiling_def.h - 纯注释改动,无代码逻辑变化 ### 效果 新增/存量算子 kernel include 统一按源码目录结构写相对路径即可,不再需要区分 static_true/static_false;matmul 系算子(引用 3rd)后续切换在线编译无路径障碍。 ## 测试 - ascend950 出包验证(10 个 static_true 算子 + matmul_reduce_scatter):编译出包成功 - 包产物解包检查:算子/common/3rd 均含 op_kernel 层级;跨算子、跨 common、跨 3rd 相对引用包内全部可解析;空目录消除;包内 #if/#endif 配平 ## 文档更新 无 See merge request: cann/ops-transformer!11224 | 17 天前 | |
clean code Co-authored-by: yayahello<zhaopenglei@hisilicon.com> # message auto-generated for no-merge-commit merge: !11339 merge new into master clean code Created-by: yayahello Commit-by: yayahello Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> MC2 告警清理 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!11339 | 17 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 17 天前 | ||
| 17 天前 |