已合并
[社区任务] aclsparseSpMM A2/A3 算子设计文档 #1113
nwww创建于 16 天前
[社区任务] aclsparseSpMM A2/A3 算子设计文档 #1113
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 nwww 的贡献)atomgit-bot
16 天前 评论:
16 天前 评论:
16 天前 添加了label:cann-cla/yes
CANN-robot
16 天前 评论:
16 天前 评论:
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-ops-competitions | ✅ 傅涛, Carolina_yuan (2/2) | ✅ 傅涛, Carolina_yuan (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
nannan-2026, thanks for your pull request. All authors of the commits have signed the CLA. 👍


CANN-robot
16 天前 评论:
16 天前 评论:
16 天前 添加了label:ai-co-authored
16 天前 添加了label:ai-docs-only
16 天前 添加了label:ai-compliance-failed
CANN-robot
16 天前 评论:
16 天前 评论:
AI Declaration Check Failed
@nannan-2026, AI declaration is not compliant. AI tool: OpenAI Codex
Please check:
- The AI tool and model declared in the PR description must be real.
- Commit messages must include the AI model, and it must be consistent with the PR description. ⚠️


此处折叠了7条事件消息 查看更多
15 天前 删除了label:ci-pipeline-passed
CANN-robot
15 天前 评论:
15 天前 评论:
15 天前 删除了label:ai-compliance-failed
15 天前 添加了label:ai-compliance-successful
nwww
11 天前 评论:
11 天前 评论:


11 天前 添加了label:approved
圆啊圆
10 天前 评论:
10 天前 评论:
/approve


10 天前 添加了label:lgtm
condfuse_3
10 天前 评论:
10 天前 评论:
compile


10 天前 添加了label:ci-pipeline-running
10 天前 删除了label:ci-pipeline-running
10 天前 添加了label:ci-pipeline-passed
condfuse_3
8 天前 评论:
8 天前 评论:
@nannan-2026 你好,社区任务设计文档 PR 自动检视结果:当前未通过评审。请按下列项修改后重新提交。
1. CLA 状态未知
- 未检测到
cann-cla/yes或cann-cla/no。 - 请完成 CLA 签署,并确认 PR 带有
cann-cla/yes标签。
全部满足后(CLA-yes + CI-pass + 设计分≥80 + 无未解决意见 + 路径正确或为忽略)将视为评审通过。


8 天前 添加了label:cann-cla/yes
CANN-robot
8 天前 评论:
8 天前 评论:
CLA检查已通过,详情可参考这里


8 天前 合入了pull request
我这里的验收任务显示的文档未通过,我是需要改这个验收文件吗还是这个pr里的文件内容,我不太明白,麻烦指教
当前PR是否有AI参与
[ ] 否
[x] 是
1. AI Agent 平台: OpenAI Codex
2. AI 模型: GPT-5
3. Prompt上下文: 使用 AI 辅助梳理 aclsparseSpMM A2/A3 社区任务需求、分析现有算子实现、整理 Host/Kernel/ATen 适配方案、诊断测试问题、核对验证结果,并协助编写和检查设计文档。所有代码提交、测试执行、结果确认及 PR 创建均由开发者在实际 Ascend A2/A3 环境中完成。
PR功能描述 / 为什么需要这个合入
本 PR 提交 CANN 社区任务“08-12-aclsparseSpMM 算子开发(A2/A3)”的算子设计文档。
文档路径:
04_tasks/01_community-task-2026/tasklist/08-12-aclsparseSpMM-A2A3/nannan-2026/docs/design.md本任务基于
ops-sparse仓库已有的 aclsparseSpMM 能力进行扩展,目标是在 Ascend A2、Ascend A3 环境中完善稀疏矩阵与稠密矩阵乘加能力,并打通以下调用链路:torch.sparse.addmm → ATen NPU / PrivateUse1 Adapter → aclsparseSpMM C++ API → Host Tiling → Ascend C Kernel设计文档主要包含以下内容:
opA、opB转置及共轭转置设计;nnz=0、空行等稀疏边界处理;torch.sparse.addmm适配方案;本 PR 仅提交设计文档,不包含算子实现代码。关联实现代码已通过独立 PR 提交至官方
cann/ops-sparse仓库。该PR关联的issue
无独立 Issue。
关联社区任务:
08-12-aclsparseSpMM 算子开发(A2/A3)关联设计文档 PR:
https://gitcode.com/cann/cann-ops-competitions/pull/1113
关联代码 PR:
https://gitcode.com/cann/ops-sparse/pull/128
关联个人代码仓库:
feature/aclsparse-spmm-a2a3f385698d7c0b25890f7c3ef6acf24d5b3b933b86希望检视人员了解
ops-sparsePR #128。torch_npu.profiler采集链路已完成小规模预检;本设计文档不声明尚未形成正式报告的性能结论。op_statistic.csv和kernel_details.csv,用于确认算子在 NPU Kernel 上执行。改动类型 / Change Type
测试信息 / Testing
本 PR 本身仅修改 Markdown 设计文档;关联算子实现已在真实 Ascend A2/A3 环境中完成以下验证。
A2 环境验证
feature/aclsparse-spmm-a2a3f385698d7c0b25890f7c3ef6acf24d5b3b933b86torch.sparse.addmm测试:通过A2 关键结果:
Total Task: 200, success 200, failed 0Summary info: acc_pass_result:Passatk task successA3 环境验证
feature/aclsparse-spmm-a2a3f385698d7c0b25890f7c3ef6acf24d5b3b933b86torch.sparse.addmm测试:通过torch_npu.profilerLevel1 预检:2/2 通过op_statistic.csv:成功生成kernel_details.csv:成功生成A3 关键结果:
Total Task: 200, success 200, failed 0Summary info: acc_pass_result:Passcompleted: 2/2 succeededPROFILER_LEVEL1_EXIT=0文档检查
git diff --check:通过docs/design.md测试勾选:
检查清单 / Checklist