Closed
DistributeBarrier 文档将 worldSize 类型误标为 UINT64 #6426
KaranocaVeAdd on  25 days agoClosed at  24 days ago
KaranocaVe
KaranocaVe
25 days ago Create

DistributeBarrier 文档将 worldSize 类型误标为 UINT64

现象

DistributeBarrier 和 DistributeBarrierExtend 的 README 均将 worldSize 标注为 UINT64。两个算子的 world_size 属性在 OpDef 中注册为 Int,ACLNN 函数原型及 tiling 实现则按 int64_t 处理,文档类型与实际接口不一致。

预期与实际

worldSize 应与算子属性及 ACLNN 接口保持一致,使用有符号 64 位整数;当前两份 README 均标为无符号 UINT64。

影响

使用者按 README 声明通信域大小的类型时,会得到与 ACLNN/OpDef 不一致的接口约定,影响调用绑定和参数检查。

修复

将两份 README 中 worldSize 的数据类型从 UINT64 更正为 INT64,保持接口实现不变。

验证

  • 差异检查通过;修复仅涉及两份 README 的类型标注。
  • 限定文件的 pre-commit 格式、拼写和其他适用检查通过;OAT 钩子因环境中缺少 oat-py 未能运行。完整 CI 待远端验证。

关联 PR: https://gitcode.com/cann/ops-transformer/merge_requests/14279

likedislike
KaranocaVeKaranocaVe
25 days ago Associated pull request
周云飞
周云飞Collaborators
25 days ago Comments:

/assign @KaranocaVe

likedislike
CANN-robotCANN-robotCollaborators
25 days ago Assign KaranocaVe as responsible person
KaranocaVeKaranocaVe
25 days ago Modify description of issue
CANN-robotCANN-robotCollaborators
24 days ago Close issue
CANN-robotCANN-robotCollaborators
24 days ago Added label: resolved
周云飞
周云飞Collaborators
4 days ago Comments:

PR #14279 将 DistributeBarrier 和 DistributeBarrierExtend 的 README 中 worldSize 类型标注由 UINT64 更正为 INT64,未改动运行时代码。

关联 PR:PR #14279

likedislike