Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
scatterNdUpdate算子支持ascend950 相比之前0318主线包性能整体劣化,分析代码,是由于在新增ascend950代码时tiling 文件计算ubBlock 出现区别: 0318之前版本:ubBlock = platform::GetUbBlockSize(context_); GetUbBlockSize是32U 0331版本:ubBlock = Ops::Base::GetCacheLineSize(context_); GetCacheLineSize 是256U 导致计算的indicesFactor 变小,kernel循环次数变多,单次处理下数据少,性能下降。
950
执行相同用例当前主线版本 性能比之前劣化20%左右
期望当前主线的scatterNdUpdate 算子的性能比0318 主线版本性能一致,不能劣化。
用例 3.31主线 比 3.18主线 用例平均性能下降20%
/assign
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 主线版本性能一致,不能劣化。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
用例 3.31主线 比 3.18主线 用例平均性能下降20%
Special notes for this issue/备注 (Optional / 选填)