| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
remove unused macro isolation Co-authored-by: liusixia<liusixia@h-partners.com> # message auto-generated for no-merge-commit merge: !12252 merge master into master remove unused macro isolation Created-by: liusixia_gitcode Commit-by: liusixia Merged-by: cann-robot Description: ## 描述 mc2 3rd下matmul相关头文件,移除非必要的宏隔离判断:该文件不涉及对应NPU_ARCH平台。 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5384 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!12252 | 13 天前 | |
整改安装重名头文件:cgmct/gmm等 Co-authored-by: chenyifan<chenyifan66@h-partners.com> # message auto-generated for no-merge-commit merge: !10750 merge clear_last into master 整改安装重名头文件:cgmct/gmm等 Created-by: mutex_lock Commit-by: chenyifan Merged-by: cann-robot Description: ## 描述 消除主仓安装后头文件 basename 重名问题,对 37 个头文件执行 git mv 重命名,并同步更新主仓内 #include 引用。 临时关闭fused_infer_attention_score,prompt_flash_attention算子ut ### 重命名文件映射(37 项) #### cgmct(10) | 旧路径 | 新路径 | | --- | --- | | gmm/common/cgmct/utils/arch.h | gmm/common/cgmct/utils/cgmct_arch.h | | gmm/common/cgmct/utils/common_utils.h | gmm/common/cgmct/utils/cgmct_common_utils.h | | gmm/common/cgmct/utils/layout_utils.h | gmm/common/cgmct/utils/cgmct_layout_utils.h | | gmm/common/cgmct/policy/dispatch_policy.h | gmm/common/cgmct/policy/cgmct_dispatch_policy.h | | gmm/common/cgmct/epilogue/fusion/default_fusion_op.h | gmm/common/cgmct/epilogue/fusion/cgmct_default_fusion_op.h | | gmm/common/cgmct/block/block_mmad.h | gmm/common/cgmct/block/cgmct_block_mmad.h | | gmm/common/cgmct/kernel/kernel_qgmm_mx.h | gmm/common/cgmct/kernel/cgmct_kernel_qgmm_mx.h | | gmm/common/cgmct/epilogue/block_epilogue_empty.h | gmm/common/cgmct/epilogue/cgmct_block_epilogue_empty.h | | gmm/common/cgmct/epilogue/block_epilogue_dequant.h | gmm/common/cgmct/epilogue/cgmct_block_epilogue_dequant.h | | gmm/common/cgmct/epilogue/block_epilogue_swiglu_mx_quant.h | gmm/common/cgmct/epilogue/cgmct_block_epilogue_swiglu_mx_quant.h | #### attention(4) | 旧路径 | 新路径 | | --- | --- | | attention/common/op_kernel/buffer.h | attention/common/op_kernel/attn_buffer.h | | attention/common/op_kernel/buffer_manager.h | attention/common/op_kernel/attn_buffer_manager.h | | attention/common/op_kernel/memcopy/copy_gm_to_l1.h | attention/common/op_kernel/memcopy/attn_copy_gm_to_l1.h | | attention/common/op_kernel/memcopy/copy_gm_to_ub.h | attention/common/op_kernel/memcopy/attn_copy_gm_to_ub.h | #### common / tests(2) | 旧路径 | 新路径 | | --- | --- | | common/include/op_kernel/layout.h | common/include/op_kernel/op_kernel_layout.h | | tests/ut/framework_special/utils/inc/tests/utils/log.h | tests/ut/framework_special/utils/inc/tests/utils/tests_utils_log.h | #### wq constant(3) | 旧路径 | 新路径 | | --- | --- | | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/constant.h | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/wq_catlass_constant.h | | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/utils/constant.h | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/utils/wq_utils_constant.h | | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/block/constant.h | mc2/3rd/weight_quant_batch_matmul_v2/op_kernel/arch35/catlass/block/wq_block_constant.h | #### TLA(7) | 旧路径 | 新路径 | | --- | --- | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/epilogue/dispatch_policy.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/epilogue/tla_epilogue_dispatch_policy.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/dispatch_policy.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/tla_gemm_dispatch_policy.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/helper.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/tla_gemm_helper.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemv/helper.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemv/tla_gemv_helper.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/epilogue/tile/tile_copy.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/epilogue/tile/tla_epilogue_tile_copy.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/tile/tile_copy.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemm/tile/tla_gemm_tile_copy.hpp | | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemv/tile/tile_copy.hpp | mc2/3rd/template_linear_algebra/op_kernel/template_linear_algebra/gemv/tile/tla_gemv_tile_copy.hpp | #### gmm copy(4) | 旧路径 | 新路径 | | --- | --- | | gmm/grouped_matmul/op_kernel/gmm_infra/epilogue/tile/gmm_copy_gm_to_ub.hpp | gmm/grouped_matmul/op_kernel/gmm_infra/epilogue/tile/gmm_epilogue_copy_gm_to_ub.hpp | | gmm/grouped_matmul/op_kernel/gmm_infra/epilogue/tile/gmm_copy_ub_to_gm.hpp | gmm/grouped_matmul/op_kernel/gmm_infra/epilogue/tile/gmm_epilogue_copy_ub_to_gm.hpp | | gmm/grouped_matmul/op_kernel/gmm_infra/gemm/tile/gmm_copy_gm_to_ub.hpp | gmm/grouped_matmul/op_kernel/gmm_infra/gemm/tile/gmm_gemm_copy_gm_to_ub.hpp | | gmm/grouped_matmul/op_kernel/gmm_infra/gemm/tile/gmm_copy_ub_to_gm.hpp | gmm/grouped_matmul/op_kernel/gmm_infra/gemm/tile/gmm_gemm_copy_ub_to_gm.hpp | #### apace ST kernel_launcher(3) | 旧路径 | 新路径 | | --- | --- | | mc2/common/op_kernel/apace/tests/st/all_gather_quant_matmul/ubmem/src/kernel_launcher.h | mc2/common/op_kernel/apace/tests/st/all_gather_quant_matmul/ubmem/src/apace_agm_kernel_launcher.h | | mc2/common/op_kernel/apace/tests/st/all_to_all_quant_matmul/src/kernel_launcher.h | mc2/common/op_kernel/apace/tests/st/all_to_all_quant_matmul/src/apace_a2a_kernel_launcher.h | | mc2/common/op_kernel/apace/tests/st/quant_matmul_reduce_scatter/ubmem/src/kernel_launcher.h | mc2/common/op_kernel/apace/tests/st/quant_matmul_reduce_scatter/ubmem/src/apace_qmrs_kernel_launcher.h | #### qbmv3 tiling(2) | 旧路径 | 新路径 | | --- | --- | | mc2/3rd/quant_batch_matmul_v3/op_kernel/quant_batch_matmul_v3_tiling_data.h | mc2/3rd/quant_batch_matmul_v3/op_kernel/qbmv3_tiling_data.h | | mc2/3rd/quant_batch_matmul_v3/op_kernel/arch35/quant_batch_matmul_v3_tiling_data.h | mc2/3rd/quant_batch_matmul_v3/op_kernel/arch35/qbmv3_arch35_tiling_data.h | #### math_util(2,仅文件 rename) | 旧路径 | 新路径 | | --- | --- | | mc2/common/utils/math_util.h | mc2/common/utils/mc2_math_util.h | | mc2/3rd/common/op_host/math_util.h | mc2/3rd/common/op_host/mc2_3rd_math_util.h | ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/4356 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [x] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!10750 | 1 个月前 | |
MicroAPI替换为Reg(examples全部、experimental非attention目录) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !11176 merge compile into master MicroAPI替换为Reg(examples全部、experimental非attention目录) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: ## 关联的Issue 关联Issue https://gitcode.com/cann/ops-transformer/issues/4908 ## 描述 CANN 头文件中 MicroAPI 是 Reg 命名空间的别名(impl/basic_api/kernel_macros.h 中定义 namespace MicroAPI = Reg;),二者为同一命名空间的别名,替换为纯语义等价操作。本 PR 将 examples 目录全部及 experimental 目录中 attention 以外模块的源码 MicroAPI 统一替换为 Reg(共 9 个文件)。 ### 提交结构(两笔) | 提交 | 内容 | |---|---| | 第1笔 | 纯文本替换 MicroAPI → Reg(9 文件,129 增/129 删,逐行校验一一对应) | | 第2笔 | git pc HEAD~1 补查后 clang-format 重排(9 文件,Reg 缩短行宽引发的适配,298 增/316 删) | ### 覆盖范围 - **examples 全部**(7 个文件):flash_attn/L0_minimal 示例 6 个 + fast_kernel_launch_example/moe_distribute_dispatch_v2 1 个 - **experimental 非 attention**(2 个文件):mc2/quant_all_reduce、ffn/swiglu_gated_mlp - experimental/attention 目录因上游 host 构建存在多组同名符号冲突(独立 issue 跟踪中),暂不处理,待修复后另行提交 ### 改动说明 - 纯文本等价替换,不改变任何计算逻辑和函数签名;第2笔仅为 clang-format 空白重排,无语义变化 - 替换代码位于 arch35/arch38 路径或 __NPU_ARCH__ == 3510 宏保护内,仅 A5(及 Regbase 新核心)生效;A2/A3(arch22,Membase API)不受影响 - 同需求其余拆分:mc2/attention/moe/gmm/mhc/posembedding 已合入,ffn 见 #11153,mamba 见 #11154 ### 验证 - 逐行脚本校验:第1笔 diff 每对行满足 新行 == 旧行.replace('MicroAPI', 'Reg') - 9 个目标文件 MicroAPI 残留为 0,pre-commit 全量 hook 收敛 - OAT 合规扫描 9 个文件全部通过 - 语义等价性由 CANN 头文件中的命名空间别名定义保证 See merge request: cann/ops-transformer!11176 | 28 天前 | |
Pre-Commit 规范整改 — example experimental Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !1465 merge fix into master Pre-Commit 规范整改 — example experimental Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: pre-commit是一个Git Hooks框架,用于在 git commit时自动运行代码检查和格式化工具。: | Hook | 功能 | 说明 | |------|------|------| | **clang-format** | C/C++ 代码格式化 | 自动格式化代码,保持风格一致 | | **OAT Check** | 开源合规检查 | 检测许可证头、禁止二进制文件提交 | 本PR对于example和experiment文件进行了pre-commit检查 See merge request: cann/ops-transformer!1465 | 2 个月前 | |
fix product master2 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13074 merge master into master fix product master2 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> AI处理器对应的产品型号名称更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#3258](https://gitcode.com/cann/ops-math/issues/3258) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> *.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-transformer!13074 | 3 天前 | |
Pre-Commit 规范整改 — example experimental Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !1465 merge fix into master Pre-Commit 规范整改 — example experimental Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: pre-commit是一个Git Hooks框架,用于在 git commit时自动运行代码检查和格式化工具。: | Hook | 功能 | 说明 | |------|------|------| | **clang-format** | C/C++ 代码格式化 | 自动格式化代码,保持风格一致 | | **OAT Check** | 开源合规检查 | 检测许可证头、禁止二进制文件提交 | 本PR对于example和experiment文件进行了pre-commit检查 See merge request: cann/ops-transformer!1465 | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 13 天前 | ||
| 1 个月前 | ||
| 28 天前 | ||
| 2 个月前 | ||
| 3 天前 | ||
| 2 个月前 |