已关闭
[Bug-Report|缺陷反馈]: [AI 识别] 项目代码存在bug导致opkernel测试无法正常运行:test_inplace_index_add_with_sorted.cpp和test_ge_glu_grad_v2.cpp中定义了同名函数(GetShapesString、GetShapeSize),导致链接阶段出现'multiple definition'错误,测试套件无法完整执行 #2874
StoneChan_创建于  5月25日关闭于  5月27日
StoneChan_
StoneChan_成员
5月25日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

项目代码存在bug导致opkernel测试无法正常运行:test_inplace_index_add_with_sorted.cpp和test_ge_glu_grad_v2.cpp中定义了同名函数(GetShapesString、GetShapeSize),导致链接阶段出现'multiple definition'错误,测试套件无法完整执行

Environment / 环境信息 (Mandatory / 必填)

A3

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

bash build.sh -u --opkernel

Describe the expected behavior / 预期结果 (Mandatory / 必填)

正常执行通过

https://cogito.oss-compass.org/intelligent-analysis/community-experience?project=cann_ops_nn_20260522_2212&focusTaskId=test_unit&painId=cann_ops_nn_20260522_2212%23test_unit%231&autoOpenPain=1

Special notes for this issue/备注 (Optional / 选填)

likedislike
StoneChan_StoneChan_成员
5月25日 添加了label:bug-report
oscillatedoscillated成员
5月25日 将 east_yang 设为负责人
oscillatedoscillated成员
5月25日 将 FelixTang7 设为负责人
CANN-robotCANN-robot成员
5月26日 关闭了 issue
oscillatedoscillated成员
5月26日 issue状态由 进行中 改变为 待办的
oscillatedoscillated成员
5月26日 重新打开了 issue
oscillatedoscillated成员
5月26日 issue状态由 待办的 改变为 进行中
LSYlsy0214
5月26日 评论:

test_ge_glu_grad_v2.cpp已将定义挪到匿名namespace中

likedislike
LSYlsy0214
5月26日 评论:

/close

likedislike
CANN-robot
CANN-robot成员
5月26日 评论:

Notice

@LSYlsy0214 , you can't close an issue unless you are the author of it or a collaborator.

likedislike
wang-xing001成员
5月27日 评论:

/close

likedislike
CANN-robot
CANN-robot成员
5月27日 评论:

Notice

@wang-xing001 , you can't close an issue unless you are the author of it or a collaborator.

likedislike
StoneChan_
StoneChan_成员
5月27日 评论:

/close

likedislike
CANN-robotCANN-robot成员
5月27日 issue状态由 进行中 改变为 已完成
CANN-robotCANN-robot成员
5月27日 关闭了 issue
CANN-robotCANN-robot成员
5月27日 添加了label:Accepted
CANN-robotCANN-robot成员
5月27日 添加了label:resolved