Closed
[Bug-Report|缺陷反馈]: add_example kernel UT 在 ascend910_93 上静默零执行且无提示 #7232
岩80Add on  29 days agoClosed at  5 days ago
岩80
岩80
29 days ago Create

Backgroud(背景信息)

在 Ascend 910C(A3/910_93)环境按 docs/zh/install/compile.md『本地验证』节执行 kernel 侧 UT 的新手(bash build.sh -u --opkernel --ops=add_example),会遇到命令成功结束(RC=0,尾行 Built target nn_op_kernel_ut)但没有任何用例被执行的现象——无 gtest 输出、无 0 tests 提示、无 soc 不匹配警告,与同文档 ophost 入口(PASSED 3 tests)的反馈形态截然不同,新手无法从输出判断『测试通过』还是『测试根本没跑』。根因:examples/add_example/tests/ut/op_kernel/CMakeLists.txt 以 AddOpTestCase(add_example "ascend910B1" "") 把 kernel UT 用例注册到 ascend910B1 单一 soc,本机 910_93 不在注册面,用例静默跳过;按文档方式6 追加 --soc=ascend910_93 复测仍零执行(编译目标完成但执行面为空)。多次独立评估(不同日期)稳定复现。自救:只能读 CMakeLists 源码发现 soc 注册串后自行改注册(超出普通新手能力)。建议:AddOpTestCase 注册面按文档宣称支持的 Atlas A3 补 ascend910_93(QUICKSTART L62-64 明示 A3=ascend910_93 是本项目支持产品线);或在 kernel UT 零执行时输出一行说明(如 'no kernel ut case registered for soc ascend910_93')。

Origin(信息来源)

算子分队

Benefit / Necessity (价值/作用)

Design(设计方案)

likedislike
yuning_chen
yuning_chenCollaborators
29 days ago Comments:

初步分析

感谢反馈。

现象理解:按文档在 910_93 上跑 add_example 的 kernel UT,命令返回成功,但没有用例输出。用例只注册了 ascend910B1,本机 soc 对不上时会被静默跳过。

当前判断:初步判断,待复现确认。

涉及范围:examples/add_example 的 kernel UT 注册,以及零执行时的提示。

下一步:在 910_93 上再跑一次。确认零执行后,补上文档宣称支持的 soc,或在没有注册用例时打印一行说明。

likedislike
yuning_chenyuning_chenCollaborators
29 days ago Assign cong-jiyu as responsible person
yuning_chen
yuning_chenCollaborators
29 days ago Comments:

您好,当前问题已收到, @cong-jiyu 正在处理中。

likedislike
丛吉钰丛吉钰Collaborators
16 days ago changed custom state from 进行中 to 已确认
丛吉钰丛吉钰Collaborators
12 days ago changed custom state from 已确认 to 技术评审中
丛吉钰丛吉钰Collaborators
12 days ago changed custom state from 技术评审中 to 已确认
chenjiayi_chenjiayi_Collaborators
9 days ago Change title to "[Bug-Report|缺陷反馈]: add_example kernel UT 在 ascend910_93 上静默零执行且无提示", originally titled "[Requirement|需求建议]: 完整测试套件".
chenjiayi_chenjiayi_Collaborators
9 days ago Added label: bug-report
丛吉钰
丛吉钰Collaborators
5 days ago Comments:
likedislike
丛吉钰丛吉钰Collaborators
5 days ago Associated pull request
丛吉钰丛吉钰Collaborators
5 days ago changed custom state from 已确认 to 已完成
丛吉钰丛吉钰Collaborators
5 days ago Close issue
CANN-robotCANN-robotCollaborators
4 days ago Added label: resolved
chenjiayi_chenjiayi_Collaborators
2 days ago Assign chenjiayi_ as responsible person
chenjiayi_
chenjiayi_Collaborators
2 days ago Comments:

补充说明本问题的后续处理:

已修复并随关联 PR 合入。

处理结果:

  • !13839:fix(cmake): 修复 examples 下 AddOpTestCase 未注册并补齐 add_example UT 的 SOC

验证:

  • 关联 PR(2026-11-09)已合入,变更可从 PR 记录追溯。
  • 本次以 PR 记录与 issue 讨论核对为主,未重新执行复现或真机验证。

说明:合入分支与版本以 PR 记录为准;如仍有问题,请重新提 issue 并附版本、shape 与日志。

如果还有后续需要,请重新提 issue。

likedislike
chenjiayi_chenjiayi_Collaborators
12 hours ago Removed responsible person chenjiayi_