Closed
[Bug-Report|缺陷反馈]: opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑 && pkg不支持-f增量编译。 #6372
lixiaweiAdd on  26 days agoClosed at  23 days ago
lixiaweiCollaborators
26 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑。pkg不支持-f增量编译。,需要新增

Environment Information / 环境信息 (Mandatory / 必填)

无

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

opkernel编译

Describe the expected behavior / 预期结果 (Mandatory / 必填)

opkernel -f增量编译逻辑和--PR_Compile增量编译逻辑一致

无

Special notes for this issue/备注 (Optional / 选填)

likedislike
LlixiaweiCollaborators
26 days ago Added label: bug-report
周云飞
周云飞Collaborators
26 days ago Comments:

感谢反馈!您希望统一 opkernel -f 与 --PR_Compile 的增量编译逻辑。目前描述中还缺少两种方式的具体行为差异,暂时无法判断这是预期的编译范围差异,还是增量判断存在遗漏。

一个可行的处理方向是:对照两种入口如何确定变更文件、如何将变更映射到待编译算子,以及如何处理公共依赖变更;对于相同输入和编译目标,可以考虑复用增量判断逻辑,同时保留各入口必要的参数和使用场景差异,避免为了统一而扩大编译范围或遗漏受影响算子。

请补充使用的代码版本、两种方式的完整执行命令,以及一个出现差异的最小示例(修改了哪些文件、两种方式各自实际编译了哪些算子,附相关日志片段即可)。这些信息有助于明确差异发生在哪一步,并判断哪些逻辑需要统一。

likedislike
LlixiaweiCollaborators
26 days ago Assign lixiawei as responsible person
LlixiaweiCollaborators
26 days ago Change title to "[Bug-Report|缺陷反馈]: opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑 && ophos不支持增量编译。", originally titled "[Bug-Report|缺陷反馈]: opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑。".
LlixiaweiCollaborators
26 days ago Modify description of issue
LlixiaweiCollaborators
24 days ago Change title to "[Bug-Report|缺陷反馈]: opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑 && pkg不支持-f增量编译。", originally titled "[Bug-Report|缺陷反馈]: opkernel -f增量编译逻辑和--PR_Compile增量编译不统一,同步增量编译逻辑 && ophos不支持增量编译。".
LlixiaweiCollaborators
24 days ago Modify description of issue
CANN-robotCANN-robotCollaborators
23 days ago Close issue
CANN-robotCANN-robotCollaborators
23 days ago Added label: resolved
周云飞
周云飞Collaborators
4 days ago Comments:

已合入 PR !14191,调整 build.sh 中的增量编译处理:opkernel 的 -f 变更文件解析改用与 --PR_Compile 相同的编译范围解析脚本,并为 pkg 增加 -f 增量编译支持。解析过程支持传入实验特性标记,并在未显式指定芯片型号时自动探测。

关联 PR:PR #14191

likedislike