Pull Request已成功合入, 合并人@CANN-robot
(感谢 TangPC 的贡献)变更摘要
本 PR 为纯文档/注释修正,不涉及可执行逻辑变更,主要修复 math/asinh 与 math/cdist 两个算子中注释与代码实际行为不一致的问题。math/asinh/op_host/asinh_def.cpp 的 dtype 支持范围注释由“仅 FP32 完整实现、FP16/BF16 迭代二落地”更新为 FP32、FP16、BF16 均已实现;math/cdist/op_host/arch35/cdist_tiling_arch35.cpp 修正了 DoTiling() 中关于高精度(HL)fp32 平面 UB 预留的规模描述,使元素数量与显存占用说明同实际预留逻辑保持一致。
主要改动
asinhdtype 范围注释更新: 将asinh_def.cpp头部注释从“迭代一范围:仅 FP32 完整实现;FP16/BF16 在迭代二落地”改为“FP32、FP16、BF16 均已实现”,使 dtype 说明与当前实现状态一致。- 保留
DataType列表声明说明: 注释中继续说明DataType列表声明 3 个 dtype 是为了保证TilingKey接口稳定,仅去除与迭代阶段相关的过时表述。 - 修正 HL fp32 平面元素数注释:
cdist_tiling_arch35.cpp中DoTiling()的注释由x1exp+diff各 4096 元素修正为各 8192 元素,与实际计算平面规模对齐。 - 补全平面 UB 占用与总量描述: 将原来的“32KB”说明细化为每平面 32KB、两平面共 64KB,并保留其与 fp32 M-split 累加器余量共同预留以避免大 P·R tile 下 UB 溢出的语义。
🧩 本次 Review 已使用自定义 Skill:




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 |
|---|---|---|
| */*/op_host/*_def.cpp | ✅ 王永光, 王林木, 张磊 (3/2) | ✅ 王永光 (1/1) |
| repo-cann/ops-math | ✅ 王林木, 张磊 (2/2) | ✅ 王林木, 张磊 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
pingchuantang, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


您好,PR已满足合入指标,请尽快联系Committer进行合入。如暂时不需要合入,请在PR标题前加[WIP]


/approve


描述
math/asinh/op_host/asinh_def.cpp:注释改为 FP32/FP16/BF16 均已实现。math/cdist/op_host/arch35/cdist_tiling_arch35.cpp:HL fp32 平面注释由 4096 元素/32KB 修正为 8192 元素/每平面 32KB(共 64KB)。关联的Issue
测试
文档更新
math/asinh/op_host/asinh_def.cppmath/cdist/op_host/arch35/cdist_tiling_arch35.cpp类型标签