Repository navigation
gfx1100 (RX 7900 XTX): rocBLAS f16 GEMM intermittently returns whole NaN output columns. Reproducer inside; looking for other cards to compare #8355
Replies: 2 comments
|
*Update after two more days of testing. Filed as a rocBLAS issue with the details: ROCm/rocm-libraries#12344* Two corrections to my post above. The clean 20-minute run on ROCm 10.0 did not hold up: 10.0 faulted on a later run (first mismatch at 188 s). And I described the escalation after 2.5 hours of load as a progression; I no longer think the data supports that, see the last point. What is new:
I still cannot tell a software defect from a hardware margin. Questions 2 and 4 in my original post are superseded by the issue. |
|
Resolved, and it was my hardware. Withdrawing the suggestion that this is a ROCm or rocBLAS defect. I swapped the RX 7900 XTX for an RX 6900 XT and reran everything on the same board, PSU, slot, kernel,
Four other owners have since run the same reproducer on five other RX 7900 XTX / W7900 cards and all Two corrections to my earlier posts while I am here: the clean 20-minute run I reported on ROCm 10.0 did Sorry for the noise. The one thing I would still flag, and it is not a TheRock issue: a marginal card |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi TheRock team and users. I'm trying to find out whether a silent-corruption problem is a fault in my particular RX 7900 XTX or something in the stack, and I'd appreciate your guidance, plus data from other gfx1100 cards. I'm not assuming a ROCm bug: other cards passing would point at my card.
System
113-EXT780190-001(OC position) and113-EXT80189-001(Silent position), PCI1002:744c, subsystem1458:240e7.0.0-31-generic, in-tree amdgpu7.14.1rc0, TheRock commitf51dc6c91e0d, CI run32200708233; rocm-librariescd9574023093, rocm-systemsca887ee80abf, llvm-projectf30ae3e6b680(also tested with ROCm 7.2.4 and 10.0)Reproducer
Source, build line, a 10-second self-test and what to report: https://gist.github.com/roverdrubber/7cd347a9340abdad2f707f2252aaaee0
It runs
rocblas_gemm_exwithrocblas_atomics_not_allowed: five GEMMs in LLM layer shapes (fp16 in / fp32 out: 17408x512x5120 and 5120x512x17408; int8 in / int32 out: the same plus 12288x512x5120), random inputs, back to back in one stream. Each output is compared bit for bit on the GPU against a reference computed at startup, after a determinism check passes. On a mismatch, the compare kernel records the launch, index, value read, reference, and both re-read through an atomic (served by L2).What it catches on my card (stock clocks, ~2460 MHz, 300 W, hotspot 76 to 81 °C)
0xFFFFE000, the f32 of f160xFFFF;0xFFE00000, the f32 of f160xFF00); uniform payloads across a whole column weren't verified.rocprofv3 on 7.14.1 shows one dispatch per GEMM call. The fp16 GEMMs use a generic fallback kernel (
ISA000,GSU1, no split-K; the name indicates wave64,WS64); the int8 ones use WMMA kernels (MI16x16x16x1,ISA1100, wave32,WS32).Full kernel names (rocprofv3 kernel trace, ROCm 7.14.1)
How I got here, and what I've already varied
I noticed it because llama.cpp on this card degenerates into
///// NaN logits on long prompts (roughly 25 to 60 percent of fresh server processes at 17.5K tokens), with the first observed divergence at a quantized matmul or the normalization after it, NaN payloads from the same family, and the weights in VRAM byte-identical to the file.In llama.cpp trials (not all of these were repeated with the standalone GEMM test), none of the following eliminated the corruption: ROCm 7.1, 7.2.4, 7.14.1 and 10.0; AMD's DKMS driver 7.1.3 and the in-tree driver; kernels 6.17 and 7.0; four GC firmware builds; a 24.04 userspace; Windows (HIP SDK); several llama.cpp builds including AMD's prebuilt b8407; two PSUs; a repaste; both BIOS switch positions. Diagnostic passes: memtest86+ on system RAM. Capping the core clock and
HIP_LAUNCH_BLOCKING=1reduce it in llama.cpp but don't fix it. OCCT VRAM and 3D (error detection on, 30 to 40 minutes each) and memtest_vulkan pass on this card. The previous card in the same PC, an RX 6900 XT, never had this.Questions
gstor the memory tests) be more useful to you than my reproducer? If so, which modules and settings?Clean runs from other cards would strengthen the suspicion that it's my particular card; similar failures elsewhere would point to a shared issue, though not prove which. Thank you for any help.
All reactions