Merged
refactor(package): 将fusion配置安装改为OpsLegacyFusionPass模块引入 #909
songkai111Add on Sep 22
refactor(package): 将fusion配置安装改为OpsLegacyFusionPass模块引入 #909
Merged
Merged fromsongkai111/opbase_15199.2.0intocann/opbase9.2.0
Pull Request has been successfully merged by CANN-robot.
(Thank you for songkai111's contribution.)Sep 22 Created pull request, commit cf6a6245
atomgit-bot
Sep 22 Comments:
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"/>,同时删除原先的三段 fusionfile_info及dir_info中对应的fusion_pass、fusion_rules相关路径声明,安装逻辑统一交由新模块承担。


Incorrect?
atomgit-bot
Sep 22 Comments:
Sep 22 Comments:
Sep 22 Added label: cann-cla/yes
CANN-robot
Sep 22 Comments:
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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


CANN-robot
Sep 22 Comments:
Sep 22 Comments:
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
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
Sep 22 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
Sep 22 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
songkai111
Sep 22 Comments:
Sep 22 Comments:
compile


Sep 22 Pre merge succeeded (commit_id: af305cefec03bc685e9ce5a94b2ce74db8eb8995)
CANN-robot
Sep 22 Comments:
Sep 22 Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


Sep 22 Added label: ci-pipeline-running
Sep 22 Removed label: ci-pipeline-running
Sep 22 Added label: ci-pipeline-passed
zl_hw
Sep 22 Comments:
Sep 22 Comments:
/lgtm
/approve


liulun0308
Sep 22 Comments:
Sep 22 Comments:
/approve


CANN-robot
Sep 22 Comments:
Sep 22 Comments:
The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: 张磊


Sep 22 Added label: lgtmapproved
Sep 22 Merged pull request
描述
关联的Issue
测试
文档更新
类型标签