Fuck-you-AMD

ROCm gfx1151 (RDNA 3.5) non-deterministic memory corruption bug report

获取代码

从这台服务器直连下载,不经过代理,速度约为走代理的 3~5 倍。

克隆(推荐,可增量更新)

git clone https://www.romancohort.cloud/git/Fuck-you-AMD.git

或者直接下载源码包(5 KB,master 分支当前快照)

下载 Fuck-you-AMD-582d25df.tar.gz

→ 在网页上浏览全部 3 个文件

仓库信息

README

ROCm gfx1151 Non-Deterministic Memory Corruption Bug Report

Non-deterministic memory corruption in PyTorch reduction operations on gfx1151 (RDNA 3.5 / Radeon 8060S) with ROCm 7.x.

Quick Summary

  • GPU: AMD Radeon 8060S (gfx1151 / RDNA 3.5), Ryzen AI Max 395
  • OS: Windows 11
  • ROCm: 7.1
  • PyTorch: 2.12.0a0+rocm7.13.0a20260313 (HIP 7.2.0)
  • Bugs: .sum(dim) / .mean(dim) / .max(dim) / .min(dim) return garbage values (~10^50) with ~20% failure rate
  • Impact: Training is fundamentally broken — backward pass via AddmmBackward0 produces NaN

Files

File Description
ROCM_GFX1151_BUG_REPORT.md Full bug report with analysis
reproduce_gfx1151_bug.py Minimal reproduction script
rocm_reduction_patch.py Workaround patch (partial — forward only)

Reproduction

# On gfx1151 device with ROCm torch installed:
python reproduce_gfx1151_bug.py

Bug #1: Reduction Corruption

import torch
for i in range(100):
    x = torch.randn(4, 251, 5, device="cuda")
    m = x.max(dim=-1)[0].max().item()  # Returns 10^30~10^50 ~20% of time

Bug #2: Backward NaN

import torch
model = torch.nn.Linear(64, 32).cuda()
x = torch.randn(4, 100, 64, device="cuda")
loss = model(x).mean()
loss.backward()  # NaN gradients via AddmmBackward0

Request to AMD

  1. Acknowledge gfx1151/RDNA 3.5 ROCm support issues
  2. Provide timeline for reduction kernel fix
  3. Advise on stable ROCm version for gfx1151
  4. Clarify if this affects other RDNA 3.x architectures