Pull Request has been successfully merged by CANN-robot.
(Thank you for 繁依Fanyi's contribution.)变更摘要
本 PR 仅新增一份设计文档 04_tasks/01_community-task-2026/tasklist/b8289b3a952d4e13a9e79c3a242a8338-aclsparseCgtsv2-A2A3/Twilight-Fanyi/docs/design.md,为社区任务「aclsparseCgtsv2 算子开发(A2/A3)」提供设计说明。文档围绕在 ops-sparse 工程 arch22 上新增 complex64 三对角线性方程组求解能力展开,覆盖公开 ABI、参数与错误边界、带部分选主元的数值算法、Host/Kernel 两阶段流程、UB 与 workspace 规划、分核同步与异步生命周期,以及精度、性能、内存和兼容性验收口径;本次不包含代码实现。
主要改动
- 公开 ABI 与类型定义: 文档定义新增
aclsparseComplex_t(real/imag字段)及aclsparseCgtsv2_bufferSizeExt、aclsparseCgtsv2两个接口签名,并约定sizeof==8、字段偏移 0/4 等编译期断言与standard-layout/trivially-copyableUT 检查,同时保留原aclsparseComplex与实数接口不变。 - 参数与错误边界表: 明确
handle、m>=3、n>=0、ldb>=max(1,m)、B列主序[ldb,n]原地写回及n=0空操作语义,并给出空指针、整数溢出、workspace 错对齐、奇异系统与异步失败对应的ACL_SPARSE_STATUS_*错误码与错误优先级约定。 - 数值算法设计: 描述以
L/D/U/V/pivot表示、带相邻行部分选主元的分解过程(含交换时第二上对角V[i]与U[i+1]的更新分支、零候选奇异标记),以及按复数模长归一化比较选主元、LAPACK SLADIV 风格保护性复数除法和前代/回代公式。 - Host 存储布局与流程: 给出 128B 对齐的 checked workspace 分区表与查询公式
W=A128(...)(主数组36m-32字节、O(m) 规模),并以内嵌 Mermaid 流程图说明 quer y/下发、n0早退、分核与 stream 生命周期;Kernel 侧流程图覆盖分块消去、跨块状态携带与 RHS 前代回代写出。 - 验收标准与用例矩阵: 汇总 200 条发布精度加独立 800 条、66,432 组合 full 网格、8 条 special、12 条 contract 及定向 C++ 用例,以及 910B3 全部 203 条性能(逐例倍率≥0.25、平均≥0.35)与内存门槛,并列出
task_submission交付件清单和 Sgtsv2 兼容回归要求。


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
Twilight-Fanyi, thanks for your pull request. All authors of the commits have signed the CLA. 👍


/approve


/approve


任务来源
10月社区任务-aclsparseCgtsv2算子开发(A2/A3)。依据当前任务书及附带的ATK配置、比较器、203条冻结性能用例、GPU基线和采集脚本编写。
本次提交
04_tasks/01_community-task-2026/tasklist/aclsparseCgtsv2-A2A3/Twilight-Fanyi/docs/design.md,覆盖complex64公开ABI、参数与错误边界、带部分选主元的三对角求解、Host/Kernel两张流程图、UB/workspace、分核、同步及异步生命周期。目录说明
按年度社区任务目录规则,将文档置于
04_tasks/01_community-task-2026/tasklist/aclsparseCgtsv2-A2A3/Twilight-Fanyi/docs/design.md。任务目录使用算子名及平台标识aclsparseCgtsv2-A2A3,贡献者目录为实际报名账号Twilight-Fanyi,文件名固定为docs/design.md。