已合并
【bug-fix】DeviceProperty属性中multi_processor_count设置默认值 #31539
xiaoqi-zhou创建于 3月9日
【bug-fix】DeviceProperty属性中multi_processor_count设置默认值 #31539
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 xiaoqi-zhou 的贡献)3月9日 创建了 pull request,commit e32da8a3
AtlasAccount
3月9日 评论:
3月9日 评论:
ascend-robot
3月9日 评论:
3月9日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/pytorch | ✅ wangmin0104, liangsongwei (2/2) | ✅ wangmin0104 (1/1) |
| test | ✅ liangsongwei, wangmin0104, wjlflyer (3/2) | ✅ wangmin0104 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


3月9日 添加了label:ascend-cla/yes
ascend-robot
3月9日 评论:
3月9日 评论:
xiaoqi-zhou
3月9日 评论:
3月9日 评论:
compile


3月9日 修改了pull request 的描述
3月9日 修改了pull request 的描述
3月9日 添加了label:ci-pipeline-running
3月9日 修改了pull request 的描述
3月9日 删除了label:ci-pipeline-running
3月9日 添加了label:ci-pipeline-failed
ascend-robot
3月9日 评论:
3月9日 评论:
流水线 PR-pipeline_pytorch#9757 运行失败
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ | >>> |
| Build_LibTorch | ✅ | >>> | |
| Build_ARM | ✅ | >>> | |
| Build_ARM_inductor | 🛑 | >>> | |
| Build_X86_torchair | 🛑 | >>> | |
| Build_ARM_torchair | 🛑 | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck | ✅ | >>> |
| check_error | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_X86_Part_01 | 🛑 | >>> |
| UT_X86_Part_02 | 🛑 | >>> | |
| UT_ARM_A2_Part_01 | ✅ | >>> | |
| UT_ARM_A2_Part_02 | ❌ | >>> | |
| UT_ARM_A3_Part_01 | 🛑 | >>> | |
| UT_ARM_A3_Part_02 | 🛑 | >>> | |
| UT_DIST_X86_Part_01 | 🛑 | >>> | |
| UT_DIST_X86_Part_02 | 🛑 | >>> | |
| UT_DIST_X86_Part_03 | 🛑 | >>> | |
| UT_DIST_X86_Part_04 | 🛑 | >>> | |
| UT_inductor_Part_01 | 🛑 | >>> | |
| UT_inductor_Part_02 | 🛑 | >>> | |
| UT_inductor_Part_03 | 🛑 | >>> | |
| UT_inductor_Part_04 | 🛑 | >>> | |
| 流水线 | PR-pipeline_pytorch | ❌ | >>> |


xiaoqi-zhou
3月9日 评论:
3月9日 评论:
compile


3月9日 删除了label:ci-pipeline-failed
3月9日 添加了label:ci-pipeline-running
3月10日 删除了label:ci-pipeline-running
3月10日 添加了label:ci-pipeline-failed
ascend-robot
3月10日 评论:
3月10日 评论:
流水线 PR-pipeline_pytorch#9834 运行失败
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ | >>> |
| Build_LibTorch | ✅ | >>> | |
| Build_ARM | ✅ | >>> | |
| Build_ARM_inductor | 🛑 | >>> | |
| Build_X86_torchair | 🛑 | >>> | |
| Build_ARM_torchair | 🛑 | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck | ✅ | >>> |
| check_error | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_X86_Part_01 | 🛑 | >>> |
| UT_X86_Part_02 | 🛑 | >>> | |
| UT_ARM_A2_Part_01 | ✅ | >>> | |
| UT_ARM_A2_Part_02 | ❌ | >>> | |
| UT_DIST_X86_Part_01 | 🛑 | >>> | |
| UT_DIST_X86_Part_02 | 🛑 | >>> | |
| UT_DIST_X86_Part_03 | 🛑 | >>> | |
| UT_DIST_X86_Part_04 | 🛑 | >>> | |
| UT_inductor_Part_01 | 🛑 | >>> | |
| UT_inductor_Part_02 | 🛑 | >>> | |
| UT_inductor_Part_03 | 🛑 | >>> | |
| UT_inductor_Part_04 | 🛑 | >>> | |
| 流水线 | PR-pipeline_pytorch | ❌ | >>> |


xiaoqi-zhou
3月10日 评论:
3月10日 评论:
compile


3月10日 删除了label:ci-pipeline-failed
3月10日 添加了label:ci-pipeline-running
3月10日 删除了label:ci-pipeline-running
3月10日 添加了label:ci-pipeline-failed
ascend-robot
3月10日 评论:
3月10日 评论:
流水线 PR-pipeline_pytorch#9910 运行失败
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ | >>> |
| Build_LibTorch | ✅ | >>> | |
| Build_ARM | ✅ | >>> | |
| Build_ARM_inductor | 🛑 | >>> | |
| Build_X86_torchair | 🛑 | >>> | |
| Build_ARM_torchair | 🛑 | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck | ✅ | >>> |
| check_error | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_X86_Part_01 | 🛑 | >>> |
| UT_X86_Part_02 | 🛑 | >>> | |
| UT_ARM_A2_Part_01 | ❌ | >>> | |
| UT_ARM_A2_Part_02 | ✅ | >>> | |
| UT_DIST_X86_Part_01 | 🛑 | >>> | |
| UT_DIST_X86_Part_02 | 🛑 | >>> | |
| UT_DIST_X86_Part_03 | 🛑 | >>> | |
| UT_DIST_X86_Part_04 | 🛑 | >>> | |
| UT_inductor_Part_01 | 🛑 | >>> | |
| UT_inductor_Part_02 | 🛑 | >>> | |
| UT_inductor_Part_03 | 🛑 | >>> | |
| UT_inductor_Part_04 | 🛑 | >>> | |
| 流水线 | PR-pipeline_pytorch | ❌ | >>> |


xiaoqi-zhou
3月10日 评论:
3月10日 评论:
compile


3月10日 删除了label:ci-pipeline-failed
3月10日 添加了label:ci-pipeline-running
3月10日 删除了label:ci-pipeline-running
3月10日 添加了label:ci-pipeline-passed
ascend-robot
3月10日 评论:
3月10日 评论:
流水线 PR-pipeline_pytorch#9935 已完成
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ | >>> |
| Build_LibTorch | ✅ | >>> | |
| Build_ARM | ✅ | >>> | |
| Build_ARM_inductor | 🛑 | >>> | |
| Build_X86_torchair | 🛑 | >>> | |
| Build_ARM_torchair | 🛑 | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck | ✅ | >>> |
| check_error | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_X86_Part_01 | 🛑 | >>> |
| UT_X86_Part_02 | 🛑 | >>> | |
| UT_ARM_A2_Part_01 | ✅ | >>> | |
| UT_ARM_A2_Part_02 | ✅ | >>> | |
| UT_DIST_X86_Part_01 | 🛑 | >>> | |
| UT_DIST_X86_Part_02 | 🛑 | >>> | |
| UT_DIST_X86_Part_03 | 🛑 | >>> | |
| UT_DIST_X86_Part_04 | 🛑 | >>> | |
| UT_inductor_Part_01 | 🛑 | >>> | |
| UT_inductor_Part_02 | 🛑 | >>> | |
| UT_inductor_Part_03 | 🛑 | >>> | |
| UT_inductor_Part_04 | 🛑 | >>> | |
| 流水线 | PR-pipeline_pytorch | ✅ | >>> |


梁松伟
3月17日 评论:
3月17日 评论:
/lgtm


wangmin0104
3月17日 评论:
3月17日 评论:
/approve


3月17日 添加了label:approvedlgtm
ascend-robot
3月17日 评论:
3月17日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: wangmin0104.
Reviewers who wrote a comment of /lgtm are: wjlflyer, wangmin0104, liangsongwei.


3月17日 合入了pull request
【合入来源】
分布式社区issue
torch.nn.DataParallel初始化时,会调用_check_balance方法对设备进行check,这个方法里面会使用设备的multi_processor_count属性,该属性npu上没有。
【修改方案】
torch.nn.DataParallel初始化时,会调用_check_balance方法对设备进行check,这个方法里面会使用设备的multi_processor_count属性,该属性npu上没有。
解决方案是获取multi_processor_count的值时使用vector_core_num或cube_core_num给其赋默认值。
【资料变更】
不涉及
【接口变更】
不涉及
【功能验证】
本地用例验证通过:

python /home/z30062846/test_stateless.py -v -k test_functional_call_with_data_parallel_error_stateless
【CheckList】