Closed
[Documentation|文档反馈]: 修正 build.sh --pkg 多 SoC 构建说明 #6392
KaranocaVeAdd on Oct 21Closed at 17 days ago
Oct 21 Associated pull request
游震
Oct 21 Comments:
Oct 21 Comments:
/assign @KaranocaVe


Oct 21 Assign KaranocaVe as responsible person
周云飞
Oct 21 Comments:
Oct 21 Comments:
/assign @KaranocaVe


Oct 21 Modify description of issue
周云飞
Oct 21 Comments:
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 链接;其具体改动和合入状态仍待确认。


17 days ago Close issue
17 days ago changed custom state from 进行中 to 已完成
17 days ago Added label: resolved
[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