Pull Request已成功合入, 合并人@CANN-robot
(感谢 sunlesheng 的贡献)变更摘要
该 PR 针对 A16W8 场景下部分 case 的 AIC 问题进行修复,核心改动位于 conv3d_backprop_input_v2_small_kernel_tiling.cpp 的 Conv3DDXV2SmallKernelTiling::InitBaseMNK 函数。此前当 kIter >= TWO_U32 时,会无条件开启 L0A/L0B 的 double buffer(DB_ON)并调用 calcMaxBaseK();本次改动在开启 DB 前新增容量校验,只有在开启 DB 后 L0A/L0B 仍能容纳 k0 时才真正启用 DB,避免 calcMaxBaseK() 内部强制对齐 k0 导致 L0 溢出。
主要改动
- 新增开启 DB 前的容量校验逻辑: 在
InitBaseMNK中根据platformInfo_.l0_ab_size、DB_ON、dtypeByteL0a_、dtypeByteL0b_、l0Params.baseM和l0Params.baseN分别计算maxBaseKByL0aDb与maxBaseKByL0bDb,用于评估 DB 开启后 L0A/L0B 可容纳的最大 K 值。 - 将无条件开启 DB 改为条件开启: 仅当
maxBaseKByL0aDb >= tilingRunInfo_.k0且maxBaseKByL0bDb >= tilingRunInfo_.k0时,才设置l0Params.al0Pbuffer = DB_ON、l0Params.bl0Pbuffer = DB_ON并调用calcMaxBaseK()。 - 避免 L0 溢出: 当 DB 后 L0A/L0B 容量不足以容纳
k0时,不再强制开启 DB,从而规避calcMaxBaseK()内强制对齐k0引发的 L0 溢出问题。


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.
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 |
|---|---|---|
| conv | ✅ 余鑫, 高成, 唐玮玮, 沈承宗 (4/2) | ✅ 余鑫 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
sunlesheng, thanks for your pull request. All authors of the commits have signed the CLA. 👍


/compile


流水线任务触发成功
任务链接 [3b8f52de50f34aaab2bd3a2b69bfa997][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_report_lcov | ✅ SUCCESS | >>>>> |
[2026-08-14 11:51:21] CI执行结束


流水线任务触发成功
任务链接 [b8456b3ab47f4020903861c2cbd7fc8f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> |
[2026-08-14 11:38:20] CI执行结束


/reject


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:10:49 | Start_Pipeline | MR_398 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:13:32 | Sync_PR | :white_check_mark: 成功 | I17f5c1295d283f2c00ac9bbba7f98ee0247f4186 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:13:53 | Trigger_SC | :white_check_mark: 触发成功 | I17f5c1295d283f2c00ac9bbba7f98ee0247f4186 | 20260814_121832099 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:38:20 | SC_Result | :x: 失败 | I17f5c1295d283f2c00ac9bbba7f98ee0247f4186 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:39:44 | CMETRICS | :white_check_mark: 成功 | I17f5c1295d283f2c00ac9bbba7f98ee0247f4186 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-14 12:40:04 | Trigger_RDV | :white_check_mark: 触发成功 | I17f5c1295d283f2c00ac9bbba7f98ee0247f4186 | 20260814_124443027 |


| Time | Name | Result | Changeid | TimeStamp | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-08-15 12:40:31 | commit | 2026-08-13T10:48:48+08:00 | c113ab1d | ||||||||||||
| SC_Result | :x: FAILURE | I17f5c12 | |||||||||||||
| RDV_Result | :x: RUNNING | I17f5c12 | |||||||||||||
|


/lgtm


/lgtm


还会有容纳不下k0的情况吗?


/lgtm


The following label is not ready.
ci-pipeline-passed: The ci-pipeline-passed label is expired as added over 72 hours. Please use /compile to recompile.


compile


流水线任务触发成功
任务链接 [8d27427c61e64bec97b5a6ab7ff58d86][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_report_lcov | ✅ SUCCESS | >>>>> |
[2026-08-19 10:01:24] CI执行结束


流水线任务触发成功
任务链接 [850bfc366b544043b5ca06ea2ba76557][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> |
[2026-08-19 09:49:32] CI执行结束


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


描述
问题修复:ExtendConvTranspose算子A16W8场景下部分caseTiling计算时因为开启pingpong后,压缩K轴,但K轴需要32对齐,导致L0A空间溢出,AIC_ERROR异常
关联的Issue
https://gitcode.com/cann/ops-nn/issues/4874
测试
RDV、compile通过
文档更新
不涉及
类型标签
AI/Agent生成声明