Closed
[Bug-Report|缺陷反馈]: mix+mix 场景下 精度概率性失败 #3563
xuyi_37Add on  Oct 13Closed at  3 days ago
xuyi_37
xuyi_37Collaborators
Oct 13 Create

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

在 mix+mix 混合调度场景下,出现精度概率性失败

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

  • 服务器/NPU 型号: Ascend950PR
  • PyPTO 版本/Commit: 976390179
  • CANN 版本: 9.2.0
  • Python 版本: 3.12.9
  • 操作系统: Ubuntu 24.04.3 LTS
  • torch 2.12.0 / torch_npu 2.12.0

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

  1. 在 NPU_ARCH == 3510 下构造 mix+mix 混合调度(无依赖)用例
  2. 触发 MIX_1C2V 与非 MIX_1C2V 分支的
  3. 批跑多次,观察 是否存在精度概率概率性失败

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

构造用例批跑多次精度始终正常

image.png

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

修复提交: 48b4a2be1 / PR: https://gitcode.com/cann/pypto/pull/6909
经开发定位是mix+mix 场景下 出现了gmstack 被踩踏。
image.png
framework/src/interface/machine/device/tilefwk/aicore_entry.h 中 PipeSyncPre 对 PIPE_S 事件的同步为「先 set_intra_block 再 wait_intra_block」,导致 gmstack 被踩踏,出现数据/结果异常。期望语义为「先 wait 后 set」。

likedislike
xuyi_37xuyi_37Collaborators
Oct 13 changed custom category from 任务 to 缺陷
xuyi_37xuyi_37Collaborators
Oct 13 Associated pull request
xuyi_37xuyi_37Collaborators
Oct 14 Change title to "[Bug-Report|缺陷反馈]: mix+mix 场景下 精度概率性失败", originally titled "[Bug-Report|缺陷反馈]: mix+mix 场景下 gmstack 踩踏".
xuyi_37xuyi_37Collaborators
Oct 14 Modify description of issue
lidongshenglidongshengCollaborators
Oct 15 Added label: Machine
lidongshenglidongshengCollaborators
Oct 15 Assign xuyi_37 as responsible person
lidongsheng
lidongshengCollaborators
Oct 15 Comments:

已看到相关PR合入, 请确认修复后及时关闭

likedislike
yanggen
yanggenCollaborators
3 days ago Comments:

代码已合入,问题已解决

likedislike
yanggenyanggenCollaborators
3 days ago changed custom state from 待办的 to 已完成
yanggenyanggenCollaborators
3 days ago Close issue
CANN-robotCANN-robotCollaborators
3 days ago Added label: resolved