Merged
add AIN readme && basic example #80
Li-JianAdd on Aug 6
add AIN readme && basic example #80
Merged
Li-JianAdd on Aug 6
Li-Jian
Li-JianCollaborators
Aug 6

当前PR是否有AI参与:

[x] 否

[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :

PR功能描述 / 为什么需要这个合入**:

补充AIN相关api的文档及基础调用样例

该PR关联的issue

(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #

希望检视人员了解:

改动类型 / Change Type

测试信息 / Testing

检查清单 / Checklist

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for Li-Jian's contribution.)
Li-JianLi-JianCollaborators
Aug 6 Created pull request, commit 40a9363b
atomgit-bot
atomgit-bot
Aug 6 Comments:

变更摘要

本 PR 主要为 AIN(Ascend Interconnect Network)相关 API 补充了文档和使用示例。新增的 basic_ring 样例展示了如何在 Ascend NPU 上使用 AscendC::Ain 接口实现跨设备的环形通信,包括基于 root-info 文件的多进程通信域初始化、对称窗口注册、以及 Put/Get/Flush/Barrier 等核心操作的完整调用流程。

主要改动

  • 新增 basic_ring.asc 示例源码:提供了一个完整的 AIN 环形通信样例,演示了 AscendC::Ain 的 Put、Get、Flush 操作以及 AscendC::AinBarrierSession 的 Sync 同步机制,并包含基于 HcclRootInfo 文件的多进程通信域初始化、Device 内存分配与校验等端到端流程。
  • 新增 run.sh 启动脚本:提供了批量拉起多 rank 进程的 shell 脚本,支持自定义 rank 数量,内建超时控制与清理机制(trap cleanup),确保测试结束时资源被正确释放。
  • 补充 AIN API 文档:根据 PR 描述,同步补充了 AIN 相关接口的 README 文档(共计 31 个文件变更),帮助开发者理解和使用 AIN 通信能力。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Aug 6 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
Li-JianLi-JianCollaborators
Aug 6 Associated issue: [Requirement|需求建议]: 补充AIN相关api的文档
CANN-robotCANN-robotCollaborators
Aug 6 Added label: cann-cla/yes
75 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Aug 8 Added label: ci-pipeline-passed
hyolee
hyoleeCollaborators
Aug 8 Comments:

/lgtm

likedislike
suqwe
suqweCollaborators
Aug 8 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Aug 8 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Aug 8 Merged pull request