| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: dflow样例新增numa_config自动生成工具 Co-authored-by: lining23666<lining.li@huawei.com> # message auto-generated for no-merge-commit merge: !4454 merge dflow_clean into develop feat: dflow样例新增numa_config自动生成工具 Created-by: lining23666 Commit-by: lining23666 Merged-by: cann-robot Description: # Pull Request ## 描述 在 examples/dflow/tools/ 下新增 create_numa_config.py 脚本和 numa_template.json 模板,自动探测 NPU 芯片型号、设备数量和设备 IP,生成单机 numa_config.json 配置文件,解决用户环境默认没有 numa_config.json 导致无法直接运行 dflow 样例的问题。 同时更新 cpp/python 的中英文 README,将原来的占位路径 xxx/xxx/xxx/numa_config.json 替换为实际生成步骤。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue ## 如何测试 1. 在无 NPU 环境执行 python3 examples/dflow/tools/create_numa_config.py,验证降级生成默认配置 2. 执行 python3 create_numa_config.py --device-list 0,1 --output-path /tmp/test.json,验证设备列表和拓扑正确 3. 验证错误输入(越界、非数字)有友好提示 4. pre-commit 全部通过 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 脚本来源参考 py_flow_smoke/tools/create_numa.py,在其基础上做了规范化改进。 See merge request: cann/ge!4454 | 22 天前 | |
feat: dflow样例新增numa_config自动生成工具 Co-authored-by: lining23666<lining.li@huawei.com> # message auto-generated for no-merge-commit merge: !4454 merge dflow_clean into develop feat: dflow样例新增numa_config自动生成工具 Created-by: lining23666 Commit-by: lining23666 Merged-by: cann-robot Description: # Pull Request ## 描述 在 examples/dflow/tools/ 下新增 create_numa_config.py 脚本和 numa_template.json 模板,自动探测 NPU 芯片型号、设备数量和设备 IP,生成单机 numa_config.json 配置文件,解决用户环境默认没有 numa_config.json 导致无法直接运行 dflow 样例的问题。 同时更新 cpp/python 的中英文 README,将原来的占位路径 xxx/xxx/xxx/numa_config.json 替换为实际生成步骤。 ## 变更类型 - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue ## 如何测试 1. 在无 NPU 环境执行 python3 examples/dflow/tools/create_numa_config.py,验证降级生成默认配置 2. 执行 python3 create_numa_config.py --device-list 0,1 --output-path /tmp/test.json,验证设备列表和拓扑正确 3. 验证错误输入(越界、非数字)有友好提示 4. pre-commit 全部通过 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 脚本来源参考 py_flow_smoke/tools/create_numa.py,在其基础上做了规范化改进。 See merge request: cann/ge!4454 | 22 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 22 天前 | ||
| 22 天前 |