| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
perf(hcomm): rewrite batch CQ polling with direct GM reads Co-authored-by: hbhdhd<luxianbin1@huawei.com> # message auto-generated for no-merge-commit merge: !302 merge pollcq into master perf(hcomm): rewrite batch CQ polling with direct GM reads Created-by: hbhdhd Commit-by: hbhdhd Merged-by: cann-robot Description: ### Was This PR authored or co-authored using generative AI tooling? - [x] No ### What this PR does / why we need it: 重写 HcommImpl<COMM_PROTOCOL_UB_CTP>::PollBatchCq:以成对 64 位 ld_dev 直读 GM 上的 CQE(DW0 提供 owner/status,高 32 位提供 entryIdx),替代原先经 MTE2 将整条 64B CQE 搬运到 UB 暂存区的轮询路径,消除每条 CQE 的搬运与双锁开销;sqTail 改为环距公式推进;超时返回 0xFF、CQE 失败返回 (status << 8) | subStatus 并保留成功前缀进度;新增 HcommUrmaDumpCqeGmCtx 支持 GM 侧 CQE 上下文转储。 BatchCommit 提交前检测 SQ/CQ 溢出并通过 PollBatchCq 自动回收已完成任务,冗余的前置容量校验并入溢出复查;批量 Drain 重载的 pipe 模板参数默认值改为 PIPE_S 与标量轮询路径对应,中文文档同步。 评审意见已响应:保留 PollBatchCq 的 expectIdx == 0 短路(避免空轮询时多余的游标回写与 doorbell),删除 BatchCommit 中与溢出复查重复的前置容量校验。 ### Which issue this PR fixes: fixes #103 ### Special notes for your reviewer: - 评审意见两条均已处理:expectIdx == 0 短路保留(suqwe 第1条);前置容量校验删除,失败路径统一走溢出复查(suqwe 第2条)。 - sqDepth == 0 场景由溢出路径安全兜底(溢出 -> 复查 -> 拒绝提交)。 ### Change Type / 改动类型 - Performance / 性能优化 ### Testing / 测试信息 - Manual verified / 人工验证通过(urma UT 编译、dav-3510 NPU 编译、pre-commit 全通过) See merge request: cann/asc-comm!302 | 2 天前 | |
fix: align AICPU entity ABI with hcomm Co-authored-by: ca1kw<caikaiwei@huawei.com> # message auto-generated for no-merge-commit merge: !268 merge master into master fix: align AICPU entity ABI with hcomm Created-by: ca1kw Commit-by: ca1kw Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> hcomm仓评审后POD有所修改,本pr修改asc-comm仓中对应的pod接口文件,和hcomm仓中保持一致,并对代码进行相应适配。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # resolves[#93](https://gitcode.com/cann/asc-comm/issues/93) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [x] 新功能 / New Feature - [ ] 性能优化 / Performance - [x] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x] 单元测试通过 / UT passed - [x] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [x] 测试添加并通过 / Tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/asc-comm!268 | 6 天前 | |
feat(mc2): add src/cc CMake skeleton for hccl migration (PR#1) Wire the migrated MC2 communication client build: - add ASCCOMM_BUILD_MC2 option (default OFF) and src/cc subdirectory - add src/cc/CMakeLists.txt with empty mc2_client SHARED target, devkit-derived include/compile/link options, and hcomm link stub - add src/cc and include/cc READMEs (migration targets, 2026 copyright) 关联 Issue: https://gitcode.com/cann/asc-comm/issues/66 Co-authored-by: WhiteJunior<liuyiming13@huawei.com> # message auto-generated for no-merge-commit merge: !248 merge migrate/cc-01-skeleton into master feat(mc2): add src/cc skeleton for hccl migration (PR#1/5) Created-by: WhiteJunior Commit-by: WhiteJunior Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: - [x] 是 1. AI Agent 平台: OpenCode 2. AI 模型: DeepSeek v4 flash 3. Prompt上下文 : 迁移方案设计与CMake骨架代码生成,人工复核与云环境编译验证 ### PR功能描述 / 为什么需要这个合入: MC2 算子开发 API(adv_api/hccl)从 asc-devkit 迁移到本仓的第一步:搭建 src/cc/ 构建骨架。 - 根 CMakeLists 新增 ASCCOMM_BUILD_MC2 选项(**默认 OFF**,不影响现有构建)和 src/cc 子目录 - src/cc/CMakeLists.txt 定义 mc2_client SHARED 目标(源列表留空,后续 PR 填充),include 路径、编译选项按 devkit 原构建平移,libhcomm 链接 stub 机制原样保留 - 详细方案见关联 Issue,本 PR 为系列 5 个中的第 1 个 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes [#66](https://gitcode.com/cann/asc-comm/issues/66) ### 希望检视人员了解: - option 默认 OFF:默认配置下本 PR 对现有构建零影响,需显式 -DASCCOMM_BUILD_MC2=ON 才构建 - 迁移基线:asc-devkit a00678a7b - 后续 PR(common/kfc/ops)在此骨架上按模块填充源码,每个独立可编译 ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> 在 aarch64 + CANN 环境验证(-DASCCOMM_BUILD_MC2=ON -DASCCOMM_BUILD_CCU=OFF): - cmake configure/generate 成功 - mc2_client 目标编译通过,libmc2_client.so 与 libhcomm stub 均正常生成 - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified (骨架期无源码,UT/ST 随后续 PR 补充) ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/asc-comm!248 | 19 天前 | |
fix(ccu): use repo-local hcomm primitives header Co-authored-by: Codex<huangduo4@hisilicon.com> # message auto-generated for no-merge-commit merge: !277 merge dev1 into master fix(ccu): use repo-local hcomm primitives header Created-by: DragonBornHD84 Commit-by: Codex Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/asc-comm!277 | 15 天前 |