已合并
bugfix: rankid can not trans to device id, use current device #11816
AtomGit-Bot创建于 2024年5月18日
bugfix: rankid can not trans to device id, use current device #11816
已合并
从refs/pull/11816/head合入到master
Pull Request已成功合入, 合并人@
(感谢 AtomGit-Bot 的贡献)2024年5月18日 添加了
ascend-cla/yes
标签
atlasaccount1
2024年5月18日 评论:
2024年5月18日 评论:
✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[489c5ff6003e4c8eb517446abfb03ce7]


2024年5月18日 添加了
ci-pipeline-running
标签
atlasaccount1
2024年5月18日 评论:
2024年5月18日 评论:
SCA扫描: success
| # | check type | result | report |
|---|---|---|---|
| 1 | sca | success | >>> |


atlasaccount1
2024年5月18日 评论:
2024年5月18日 评论:
静态检查: pass
| # | check type | result | report |
|---|---|---|---|
| 1 | codecheck | pass | >>> |


2024年5月18日 移除了
ci-pipeline-running
标签
2024年5月18日 添加了
ci-pipeline-passed
标签
2024年5月20日 添加了
lgtm
标签
2024年5月20日 添加了
approved
标签
2024年5月20日 合并了Pull Request(通过 API 合并)
What type of PR is this?
Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug
问题背景:
多机卡数不对等的场景,无法使用global rank 计算出device id。例如server0有3个device卡,rankid 0,1,2,对应device 0,1,2;server1有4个device ,对应rankid 3,4,5,6, deviceid 0,1,2,3。由于server1上的不知道server0上到底初始化几张卡,所以无法通过rankid计算server1上的deviceid。
解决方法对接口get_hcom_name修改
1、修改接口实现 内部使用 get current device 去初始化集合通讯资源
2 外部传入 rankid 但不使用(保证接口兼容性)
3 资料加约束,使用该接口时必须保证 set device 正确