已合并
[Feature][op][eqbsa-01] support CANN msprof include layout #512
lanwangli创建于 23 天前
[Feature][op][eqbsa-01] support CANN msprof include layout #512
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 lanwangli 的贡献)atomgit-bot
23 天前 评论:
23 天前 评论:
变更摘要
该 PR 是 eqbsa(eagle_quant_block_sparse_attention)算子上库顺序中的构建兼容性提交,仅调整 csrc/ops/cmake/intf_pub.cmake 的 include 路径配置。由于 CANN 9.1 将 prof_api.h 从原位置迁移到 msprof/profiling/,而 prof_common.h 仍位于 msprof/toolchain/,本改动通过补齐这两个子目录,使后续走 intf_pub 的自定义算子编译时能够正确解析 msprof 头文件。该改动不新增算子源码、不启用构建、不暴露 API,对所有使用 intf_pub 的自定义算子通用,而非 eqbsa 专用逻辑。
主要改动
- 补齐
msprof/toolchaininclude 目录:在target_include_directories(intf_pub ...)中新增${ASCEND_CANN_PACKAGE_PATH}/include/experiment/msprof/toolchain,用于解析仍位于该子目录下的prof_common.h。 - 补齐
msprof/profilinginclude 目录:新增${ASCEND_CANN_PACKAGE_PATH}/include/experiment/msprof/profiling,用于解析 CANN >= 9.1 迁移后的prof_api.h。 - 添加路径变更说明注释:在新增目录前补充注释,说明 CANN 9.1 将
prof_api.h迁至msprof/profiling/、prof_common.h保留在msprof/toolchain/,并指出不存在的目录只会触发无害的-Wmissing-include-dirs警告。


atomgit-bot
23 天前 评论:
23 天前 评论:
23 天前 添加了label:ascend-cla/yes
ascend-robot
23 天前 评论:
23 天前 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/MindIE-SD | ✅ weixin_44144262, changetheway (2/2) | ✅ weixin_44144262 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
lanwangli, thanks for your pull request. All authors of the commits have signed the CLA. 👍


23 天前 添加了label:ci-pipeline-running
ascend-robot
23 天前 评论:
23 天前 评论:
ascend docs pipeline is running...


23 天前 添加了label:docs-ci-pipeline-running
ascend-robot
23 天前 评论:
23 天前 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


23 天前 删除了label:docs-ci-pipeline-running
23 天前 添加了label:docs-ci-pipeline-success
23 天前 删除了label:ci-pipeline-running
23 天前 添加了label:ci-pipeline-passed
ascend-robot
23 天前 评论:
23 天前 评论:
流水线 PR-pipeline_MindIE-SD_gitcode#1742 [ commitID:16031bd4 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_linux_x86_abi1 | ✅ | >>> |
| Build_linux_arm_abi1 | ✅ | >>> | |
| Build_linux_arm_abi0 | ✅ | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_linux_arm | ✅ | >>> |
| 流水线 | PR-pipeline_MindIE-SD_gitcode | ✅ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


changetheway
23 天前 评论:
23 天前 评论:
/lgtm


lijinxi
23 天前 评论:
23 天前 评论:
/lgtm


lijinxi
23 天前 评论:
23 天前 评论:
/approve


23 天前 添加了label:lgtm
23 天前 添加了label:approved
blian
23 天前 评论:
23 天前 评论:
/merge


23 天前 添加了label:keeper_approved
23 天前 合入了pull request
Which issue(s) this PR fixes or accomplishes
Fix part of #197
关联 Issue:https://gitcode.com/Ascend/MindIE-SD/issues/197
Purpose
上库 eagle_quant_block_sparse_attention 算子和 plugin 适配,关联 RFC: #197。
该算子用于叠加量化和块稀疏 Attention 能力:Q/K 采用 INT8 量化,P/V 相关路径采用 FP8 低精度表示,并通过 block sparse mask/index 降低长序列 Attention 的计算和访存开销。
CANN 9.1 将
prof_api.h挪到msprof/profiling/,prof_common.h仍在msprof/toolchain/。本 PR 仅补齐这两个 include 目录,使自定义算子编译能解析 msprof 头文件。该改动对所有走intf_pub的自定义算子都有效,不是 eqbsa 专用逻辑。Scope
Overall Sequence
Merge Safety
该 PR 只改 include 路径,不新增算子源码、不启用构建、不暴露 API。可独立合入,不会把 eqbsa 编进产物。CANN 9.1 环境下后续算子编译依赖本 PR。
Test Plan
intf_pub.cmake增加msprof/toolchain与msprof/profilingTest Report
测试环境: Ascend 950,CANN 9.x
intf_pub.cmake仅增加 msprof 两个子目录