已关闭
[Bug-Report|缺陷反馈]: SquareSumAll 修正文档并迁移 Gather API #2918
raoliang_sac创建于  23 天前关闭于  23 天前
raoliang_sac成员
23 天前 创建

一、问题描述 (必填)

SquareSumAll 当前有两处需要质量加固:

  1. README 参数表直接混入 Ascend 950 与其他产品的差异信息,不符合“参数表描述各产品能力并集、产品差异单独说明”的文档组织要求,产品能力范围不易准确识别。
  2. arch35 Kernel 的归约路径有两处使用旧接口 Reg::DataCopyGather,应迁移为当前公开接口 Reg::Gather。

本问题不涉及算子数学语义、精度或性能变化。API 迁移前后已通过独立构建验证 Kernel 二进制一致。

二、环境信息 (可选)

  • 仓库:cann/ops-math
  • 算子:math/square_sum_all
  • 目标分支:master
  • Kernel 平台:Ascend 950 / arch35

三、重现步骤 (可选)

  1. 查看 math/square_sum_all/README.md 的参数表,可见产品差异直接写入参数项。
  2. 检查 math/square_sum_all/op_kernel/arch35/square_sum_all_gpu_aligned.h,可定位到两处 Reg::DataCopyGather。
  3. 对比关联 PR 的修改,确认参数表改为能力并集、产品差异单列,旧接口迁移为 Reg::Gather。

四、预期结果 (可选)

  • 参数表完整描述各产品支持能力的并集,Ascend 950 与其他产品的格式、动态 shape 和 rank 差异单列说明。
  • 两处旧 Gather API 迁移到当前公开接口,Kernel 行为保持不变。
  • 不引入精度和性能变化。

验证结果

  • pre-commit:PASS。
  • Ascend 950 修改前、修改后独立包编译:PASS。
  • 3/3 个 Kernel 对象文件逐字节一致。
  • 3/3 个配套 JSON 完全一致。
  • 旧 API 残留扫描:0。

关联 PR:https://gitcode.com/cann/ops-math/merge_requests/5138

likedislike
Rraoliang_sac成员
23 天前 添加了label:bug-report
raoliang_sac成员
23 天前 评论:

/assign @raoliang_sac

likedislike
CANN-robotCANN-robot成员
23 天前 将 raoliang_sac 设为负责人
CANN-robotCANN-robot成员
23 天前 关闭了 issue
CANN-robotCANN-robot成员
23 天前 添加了label:resolved