已合并
修复bmmv3 vector模板在atc模型下编译bug #6351
zhang-junming21创建于 6月22日
修复bmmv3 vector模板在atc模型下编译bug #6351
已合并
zhang-junming21创建于 6月22日
zhang-junming21
zhang-junming21成员
6月22日

描述

修复使用atc编译模型存在的bug

关联的Issue

Issue #3473

测试

ci无问题

文档更新

类型标签

  • Bug修复
  • 新特性
  • 性能优化
  • 文档更新
  • 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhang-junming21 的贡献)
zhang-junming21zhang-junming21成员
6月22日 创建了 pull request,commit 6e4f08bd
zhang-junming21zhang-junming21成员
6月22日 关联了issue:[Bug-Report|缺陷反馈]: bmmv3 vector算子在atc模型环境下存在编译问题
CANN-robotCANN-robot成员
6月22日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月22日 评论:

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


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
matmul 范其瑞, 杨阳 (2/2) 范其瑞, 杨阳 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

hid54649903, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
zhang-junming21
zhang-junming21成员
6月22日 评论:

/compile

likedislike
zhang-junming21zhang-junming21成员
6月22日 update merge request[project id: 7665709, iid: 6351, commit_id: 179467e1e9a8b437cacf9057412a22da8f3c25f5] virtual merging success
CANN-robotCANN-robot成员
6月22日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月22日 评论:

流水线任务触发成功
任务链接 [d2c250974c624268889ff53f1c2fffad][流水线指导]

任务名称状态日志下载链接
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_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-22 17:36:41]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月22日 评论:

流水线任务触发成功
任务链接 [b89325505c004e1e91189904e29189cc][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_checkpr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_style ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
SCA ✅ SUCCESS >>>>>

[2026-06-22 17:30:55]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月22日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月22日 添加了label:ci-pipeline-passed
atomgit-bot
atomgit-bot
6月22日 评论:

变更摘要

此 PR 修复了 batch_mat_mul_v3 的 vector 模板在 ATC 模型编译时的 bug。改动位于 batch_mat_mul_v3_vector.h 文件的 BatchMatmulVectorKernel::Init 函数中,将参数 BatchMatmulTilingData* tilingData 添加 const 限定符,变为 const BatchMatmulTilingData* tilingData。该函数内部对 tilingData 仅有只读访问(读取 vectorTilingInfo 的各个字段),添加 const 确保了 const 正确性,使得 ATC 编译器在调用处传入 const 指针时不再产生类型不匹配的编译错误。

主要改动

  • Init 函数签名 const 修正: 在 matmul/batch_mat_mul_v3/op_kernel/batch_mat_mul_v3_vector.h 第 63 行,将 BatchMatmulTilingData* tilingData 参数改为 const BatchMatmulTilingData* tilingData,保证调用方可以传入 const 指针,解决 ATC 模型编译时的类型不兼容问题。
likedislike
atomgit-bot
atomgit-bot
6月22日 评论:

代码审查

✅ 未发现问题

likedislike
范其瑞
范其瑞成员
6月22日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月22日 添加了label:approved
yangyang016成员
6月22日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月22日 添加了label:lgtm
CANN-robotCANN-robot成员
6月22日 合入了pull request