Closed
[Documentation|文档反馈]: 修正 build.sh --pkg 多 SoC 构建说明 #6392
KaranocaVeAdd on  Oct 21Closed at  17 days ago
KaranocaVe
KaranocaVe
Oct 21 Create

[Documentation|文档反馈]: 修正 build.sh --pkg 多 SoC 构建说明

docs/zh/install/build.md 将 --soc 描述为“每次编译只支持1个NPU型号”。但 build.sh --help 明确说明可用英文逗号分隔多个 SoC;--pkg 打包分支会拆分 SoC 列表,并对每个型号依次调用 build_pkg_for_single_soc。
因此,执行 bash build.sh --pkg --soc=ascend910b,ascend910_93 时,脚本会分别为两个 SoC 执行打包构建。现有说明会让使用者误以为不能在一次打包调用中指定多个型号。
修复仅更正文档,明确 --pkg 支持逗号分隔的多个 SoC,并按型号依次构建;不改变脚本行为。

关联 PR: https://gitcode.com/cann/ops-transformer/merge_requests/14242

likedislike
KaranocaVeKaranocaVe
Oct 21 Associated pull request
游震
游震Collaborators
Oct 21 Comments:

/assign @KaranocaVe

likedislike
CANN-robotCANN-robotCollaborators
Oct 21 Assign KaranocaVe as responsible person
周云飞
周云飞Collaborators
Oct 21 Comments:

/assign @KaranocaVe

likedislike
KaranocaVeKaranocaVe
Oct 21 Modify description of issue
周云飞
周云飞Collaborators
Oct 21 Comments:

感谢指出文档中对构建范围的表述问题。按您描述的脚本逻辑,--pkg 会拆分 --soc 中以英文逗号分隔的型号列表,再逐个调用 build_pkg_for_single_soc。因此,“每次编译只支持1个NPU型号”容易让用户把单个型号的构建过程与一次打包命令可处理的型号数量混淆。

建议在 docs/zh/install/build.md 中将打包场景明确说明为:“使用 --pkg 打包时,--soc 支持指定多个 NPU 型号,型号之间使用英文逗号分隔,脚本会按型号依次执行打包构建。例如:bash build.sh --pkg --soc=ascend910b,ascend910_93。”这一说明应限定在 --pkg 场景,不扩展为其他构建模式也支持多型号。

本次调整可限定为文档澄清,不改变脚本行为。已收到关联 PR 链接;其具体改动和合入状态仍待确认。

likedislike
CANN-robotCANN-robotCollaborators
17 days ago Close issue
CANN-robotCANN-robotCollaborators
17 days ago changed custom state from 进行中 to 已完成
周云飞
周云飞Collaborators
17 days ago Comments:

已通过 PR #14242 修正 docs/zh/install/build.md 中的 --soc 参数说明:使用 --pkg 打包时,可用英文逗号分隔多个 NPU 型号,脚本会按型号依次构建。

关联 PR:PR #14242

likedislike
CANN-robotCANN-robotCollaborators
17 days ago Added label: resolved