已合并
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
已合并
AtomGit-Bot创建于 2024年5月18日
refs/pull/11816/head合入到master
AtomGit-Bot
2024年5月18日

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 正确

likedislike
Pull Request已成功合入, 合并人@
(感谢 AtomGit-Bot 的贡献)
AAtomGit-Bot
2024年5月18日 添加了 &nbsp; ascend-cla/yes 标签
atlasaccount1
atlasaccount1
2024年5月18日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[489c5ff6003e4c8eb517446abfb03ce7]

likedislike
atlasaccount1atlasaccount1
2024年5月18日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年5月18日 评论:


SCA扫描: success

# check type result report
1 sca success >>>

likedislike
atlasaccount1
atlasaccount1
2024年5月18日 评论:


静态检查: pass

# check type result report
1 codecheck pass >>>

likedislike
atlasaccount1atlasaccount1
2024年5月18日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年5月18日 添加了 &nbsp; ci-pipeline-passed 标签
AAtomGit-Bot
2024年5月20日 添加了 &nbsp; lgtm 标签
AAtomGit-Bot
2024年5月20日 添加了 &nbsp; approved 标签
AAtomGit-Bot
2024年5月20日 合并了Pull Request(通过 API 合并)