Closed
[Bug-Report|缺陷反馈]: Matmul部分算子中对寄存器做初始化,在算子执行完成之后未还原 #3921
wangwei_maydayAdd on  Jul 7Closed at  Jul 23
wangwei_mayday
wangwei_maydayCollaborators
Jul 7 Create

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

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

问题主要出现在以下几个Matmul文件中的算子:
ops-nn/matmul/common/cmct/kernel/kernel_matmul_merge_batch.h
ops-nn/matmul/common/cmct/kernel/kernel_matmul_iterbatch.h
ops-nn/matmul/common/cmct/kernel/kernel_matmul_mix_fixpipe_opti.h
ops-nn/matmul/common/cmct/kernel/kernel_matmul_mix_without_que.h
ops-nn/matmul/common/cmct/kernel/kernel_matmul_streamk.h
ops-nn/matmul/common/cmct/kernel/kernel_matmul_without_que.h
算子在初始化时使用setHF32TransMode修改寄存器,使算子是否按照HF32执行,在执行结束后没有将寄存器状态还原,会干扰后续算子的执行。
问题截图1,算子在初始化时修改寄存器状态:
image.png
问题截图2,算子在执行结束后未还原寄存器状态:
image.png

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

NA

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

NA

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

在算子执行完成之后,应该要恢复算子执行之前的寄存器状态,不干扰其他算子的执行。

NA

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

likedislike
wangwei_mayday
wangwei_maydayCollaborators
Jul 7 Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
Jul 7 Assign wangwei_mayday as responsible person
Yyuhao_Collaborators
Jul 7 Associated pull request
Yyuhao_Collaborators
Jul 7 Deleted associated pull request: opdef文档支持范围修改
wangwei_maydaywangwei_maydayCollaborators
Jul 9 Associated pull request
CANN-robotCANN-robotCollaborators
Jul 23 Close issue
CANN-robotCANN-robotCollaborators
Jul 23 Added label: resolved