已关闭
[Bug-Report|缺陷反馈]: ScatterNdUpdate 主线最新的版本对比0318版本存在性能劣化,由于ubBlock计算有误 #1904
xingtaowu创建于  4月2日关闭于  4月3日
xingtaowu成员
4月2日 创建

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

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

scatterNdUpdate算子支持ascend950 相比之前0318主线包性能整体劣化,分析代码,是由于在新增ascend950代码时tiling 文件计算ubBlock 出现区别:
0318之前版本:ubBlock = platform::GetUbBlockSize(context_); GetUbBlockSize是32U
0331版本:ubBlock = Ops::Base::GetCacheLineSize(context_); GetCacheLineSize 是256U
导致计算的indicesFactor 变小,kernel循环次数变多,单次处理下数据少,性能下降。

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

950

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

执行相同用例当前主线版本 性能比之前劣化20%左右

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

期望当前主线的scatterNdUpdate 算子的性能比0318 主线版本性能一致,不能劣化。

用例 3.31主线 比 3.18主线 用例平均性能下降20%

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

likedislike
Xxingtaowu成员
4月2日 添加了label:bug-report
xingtaowu成员
4月2日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
4月2日 将 xingtaowu 设为负责人
CANN-robotCANN-robot成员
4月3日 关闭了 issue
CANN-robotCANN-robot成员
4月3日 添加了label:resolved