Closed
[Documentation|文档反馈]: UB样例Case 1超限结果描述错误 #2027
liuyi424Add on  10 days agoClosed at  5 days ago
liuyi424
liuyi424Collaborators
10 days ago Create

Document Link(文档链接)

https://gitcode.com/cann/asc-devkit/blob/master/examples/05_simd_simt_hybrid/01_trouble_shooting/simd_simt_ub_usage_limit/README.md

https://gitcode.com/cann/asc-devkit/blob/master/examples/05_simd_simt_hybrid/01_trouble_shooting/simd_simt_ub_usage_limit/README_en.md

Issues Section(问题文档片段)

| 2 | 不调用VF | 运行通过 | Kernel启动失败 |
This Case first allocates `static_ub` at the theoretical usable UB limit ... compilation still succeeds, but kernel launch fails ...

Existing Issues(存在的问题)

当前中英文 README 将 Case 1 在理论UB上限基础上多申请 4B 后的结果统一描述为“Kernel启动失败”。

实际行为应区分两种失败阶段:

  • SCENARIO_NUM=2(不调用VF):静态UB数组超过UB总量,编译阶段即失败,错误信息为 ld.ldd: error: the size of ubuf static variables exceeds maximum size ...。
  • SCENARIO_NUM=3~5(存在VF调用):编译仍可成功,但Kernel启动失败,错误信息为 the sum of dynamic shared memory and kernel shared memory exceeds the maximum limit。

验证环境:

  • CANN 版本:9.3.0
  • 硬件形态:dav-3510 / Ascend 950PR

关联修复 PR:#7417

likedislike
liuyi424liuyi424Collaborators
10 days ago Assign liuyi424 as responsible person
liuyi424
liuyi424Collaborators
10 days ago Comments:

该问题为静态UB使用超过物理上限时,编译期会进行拦截,已在pr进行修复

likedislike
CANN-robotCANN-robotCollaborators
5 days ago Close issue
CANN-robotCANN-robotCollaborators
5 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
5 days ago Added label: resolved