Merged
refactor(package): 将fusion配置安装改为OpsLegacyFusionPass模块引入 #909
songkai111Add on Sep 22
refactor(package): 将fusion配置安装改为OpsLegacyFusionPass模块引入 #909
Merged
songkai111Add on Sep 22
songkai111
songkai111Collaborators
Sep 22

描述

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for songkai111's contribution.)
songkai111songkai111Collaborators
Sep 22 Created pull request, commit cf6a6245
atomgit-bot
atomgit-bot
Sep 22 Comments:

变更摘要

本 PR 将原本内联在 opbase.xml 中的 fusion 相关配置与规则文件安装逻辑抽取为独立的打包模块,新增 scripts/package/module/ascend/OpsLegacyFusionPass.xml 并定义同名 block,再在 opbase.xml 中通过 block 方式引入,从而把 fusion 配置文件的安装职责从 opbase 中解耦出来。安装内容、权限模式与软链接目标保持一致。

主要改动

  • 新增 OpsLegacyFusionPass 打包模块: 新建 scripts/package/module/ascend/OpsLegacyFusionPass.xml,定义 block 名为 OpsLegacyFusionPass,配置 install_own="$username:$usergroup"、install_mod="440"、install_type="all"。
  • 迁移 fusion 配置与规则文件安装项: 该模块通过 file_info 安装 fusion_pass/config 下的 fusion_config.json、support_fusion_pass.json,以及 fusion_rules/ai_core 与 fusion_rules/vector_core 下的 built_in_graph_rules.json,均使用 install_mod="550" 并生成指向 opp/lib64/plugin/... 的 install_softlink。
  • 声明目录树权限: 模块通过 dir_info 列出 $(TARGET_ENV)/lib64/plugin/... 与 opp/lib64/plugin/... 下的 opskernel、fusion_pass、fusion_rules 等目录路径,install_mod="550"。
  • opbase.xml 改为按 block 引入: 在 block_info 中新增 <block name="OpsLegacyFusionPass"/>,同时删除原先的三段 fusion file_info 及 dir_info 中对应的 fusion_pass、fusion_rules 相关路径声明,安装逻辑统一交由新模块承担。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 22 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 22 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
9.2.0 ✅ 张磊, gcw_kUomxQ2l (2/2) ✅ gcw_kUomxQ2l (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

CLA Signature Pass

songkai111, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,TianXL,jia0liang,zl_hw,jiangtao_rts,gitcode-chenjiao,hanxiaolong,pingchuantang,llimwang,gubaocheng,gcw_kUomxQ2l,Andy-lb as approver
CANN-robotCANN-robotCollaborators
Sep 22 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
songkai111
songkai111Collaborators
Sep 22 Comments:

compile

likedislike
songkai111songkai111Collaborators
Sep 22 Pre merge succeeded (commit_id: af305cefec03bc685e9ce5a94b2ce74db8eb8995)
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 22 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-passed
zl_hw
zl_hwCollaborators
Sep 22 Comments:

/lgtm
/approve

likedislike
liulun0308
liulun0308Collaborators
Sep 22 Comments:

/approve

likedislike
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: 张磊

likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Sep 22 Merged pull request