Closed
[Bug-Report|缺陷反馈]: ForeachNonFiniteCheckAndUnscale 的 ACLNN 平台白名单遗漏 Regbase 架构 #7289
xieshengwei1024Add on  28 days agoClosed at  28 days ago
xieshengwei1024
xieshengwei1024Collaborators
28 days ago Create

Describe the current behavior / 问题描述

在 Ascend960DT(DAV_9201)调用 aclnnForeachNonFiniteCheckAndUnscaleGetWorkspaceSize 时,API 层 GetDtypeSupportList() 按 SocVersion 白名单检查平台,返回空类型列表并报错,合法输入无法进入 tiling。Ascend350 已有算子注册与 kernel 配置,同样遗漏于 API 白名单。

Environment Information / 环境信息

  • 受影响平台:Ascend960DT(DAV_9201);代码检查同时发现 Ascend350 的同类遗漏。
  • 源码基线:cann/ops-nn master,a1e64b3994158aa730ed0e03015d0c9a6c1fc725。
  • 本地验证环境:CANN 9.1.0,GCC 13.3.0,Python 3.12.3;使用平台 mock 进行 API 与 tiling 单测,未进行 960 真机执行验证。

Steps to reproduce the issue / 重现步骤

  1. 在 DAV_9201 平台准备非空、同类型的 scaledGrads(FLOAT32/FLOAT16/BFLOAT16),以及单元素 FLOAT32 的 foundInf、invScale。
  2. 调用 aclnnForeachNonFiniteCheckAndUnscaleGetWorkspaceSize。
  3. GetDtypeSupportList() 无法通过 SocVersion 白名单,返回 ACLNN_ERR_PARAM_INVALID。

Describe the expected behavior / 预期结果

通过公共 Ops::NN::AclnnUtil::IsRegbase() 判断 Regbase 架构,使其合法 dtype 能通过 API 参数检查,并与已有 tiling 平台判断保持一致;保留 310P、Kirin 的 dtype 限制与其他参数校验。

ForeachNonFiniteCheckAndUnscale is not supported on the current platform.

Special notes / 备注

当前 master 的公共 IsRegbaseSocVersion(context) 已包含 DAV_9201,因此无需额外添加 tiling 架构特判。本问题修复不新增 960PR 等平台的完整构建配置。

likedislike
xieshengwei1024xieshengwei1024Collaborators
28 days ago Added label: bug-report
xieshengwei1024xieshengwei1024Collaborators
28 days ago Associated pull request
xieshengwei1024
xieshengwei1024Collaborators
28 days ago Comments:

关联修复 PR: https://gitcode.com/cann/ops-nn/pull/12699

已补充 API 与 tiling 回归测试,并在 PR 下触发 /compile。

likedislike
CANN-robotCANN-robotCollaborators
28 days ago Close issue
CANN-robotCANN-robotCollaborators
28 days ago Added label: resolved
HuangRZzzzHuangRZzzzCollaborators
9 days ago Assign xieshengwei1024 as responsible person
CANN-robotCANN-robotCollaborators
9 days ago changed custom state from 进行中 to 已完成