Pull Request已成功合入, 合并人@CANN-robot
(感谢 theorycs 的贡献)🤖 正在生成合并请求摘要,请稍候…


Hi @theorycs, welcome to submitting your first PR to cann-learning-hub!
PR Merge Steps
1. CLA Signing
If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.
2. CI Check
Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.
3. Code Review
After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.


🤖 AI 代码检视正在进行中,请稍候…


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/cann-learning-hub | ✅ waimaidaole, zutao (2/2) | ✅ waimaidaole, zutao (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
theorycs, thanks for your pull request. All authors of the commits have signed the CLA. 👍


⚠️ 本次变更过大(4 个可审文件、8727 行,预估需 8 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


⚠️ 本次变更过大(4 个可审文件、8727 行,预估需 8 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


/check-cla


CLA检查已通过,详情可参考这里


/compile


@theorycs
感谢提交!data_structure_for_hpc 课程第三章分布式计算的 4 个 notebook
已在 CANN 9.1.0 / Ascend 910B3 环境下验证通过,编译运行正常,结果正确。
4 个 notebook 都做了很好的环境自适应设计——单卡环境自动降级到 simulate 仿真模式
验证逻辑正确性,多卡环境使用真机 HCCL,考虑很周到。
以下是验证结果:
验证环境
CANN 9.1.0 / Ascend 910B3 / device 7 / Python 3.11.4
变动文件 5 个:4 个 .ipynb + 1 个 README.md
文件类型均符合规范,无异常文件。
README 新增 4 行章节条目,格式正确,无冲突标记。
| Notebook | 代码cell | 通过 | 失败 | 状态 | 结果验证 |
|---|---|---|---|---|---|
| 03.01 HCCL 字符串词频统计 | 27 | 27 | 0 | ✅ PASS | result: PASS, mismatch_count: 0 |
| 03.02 一致性哈希环 | 20 | 20 | 0 | ✅ PASS | 迁移比例数据完整正确 |
| 03.03 分布式 B+树 | 22 | 22 | 0 | ✅ PASS | query_result: PASS |
| 03.04 HCCL CSR 图分区 | 30 | 30 | 0 | ✅ PASS | result: PASS, mismatch_count: 0 |
说明:
- 所有 notebook 源码通过 %%writefile 动态生成,符合课程规范
- 03.01 和 03.04 在单卡环境下自动降级为 simulate 模式,逻辑验证通过
- 编译、运行、结果校验均无报错
结论
验证通过,可以合入。
感谢您的贡献!


/lgtm
/approve


描述
在“面向高性能计算的数据结构”课程第3章“分布式计算”中,新增4个分布式计算实验。
本次新增实验包括:
基于HCCL集合通信实现分布式字符串词频统计,通过多设备协同完成数据划分、局部统计与结果聚合。
实现一致性哈希环及分布式哈希表的数据映射过程,模拟节点加入、退出时的数据重新分布与局部迁移。
模拟分布式B+树的数据组织与动态更新过程,实现节点变化场景下的索引调整及局部数据迁移。
基于CSR结构组织图数据,并结合HCCL完成多设备间的图分区信息通信与结果聚合。
关联的Issue
无。
测试
文档更新
类型标签
其他信息
无。