Skip to content

tests: hip_prefill_wmma_gemm_parity skips on a card without matrix cores instead of failing - #1148

Closed
Vop3p wants to merge 1 commit into
Niko1221:mainfrom
Vop3p:v140/hip-wmma-gemm-parity-skip
Closed

Vop3p wants to merge 1 commit into
Niko1221:mainfrom
Vop3p:v140/hip-wmma-gemm-parity-skip

Conversation

@Vop3p

@Vop3p Vop3p commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

On gfx1030 (RX 6900 XT) hip_prefill_wmma_gemm_parity fails on 0.1.40.1 (82f46a8): the WMMA GEMM kernel declines every one of the 440 shapes, the suite counts zero passes and ends with "FAILED: zero test cases passed (all were declined or skipped)". The HIP ctest run therefore fails this one test on every RDNA2 card.

The test now checks the architecture first with the kernels' own gfx_arch_is_gfx11_wmma and exits 77 where there are no matrix cores; CMake marks 77 as SKIP_RETURN_CODE, as hip_prompt_attn_wmma already does. The zero-passes failure stays for cards that have WMMA.

Measured on the RX 6900 XT (gfx1030, ROCm 10.0) at 82f46a8: before, hip_prefill_wmma_gemm_parity is the one failure among the 19 HIP tests ("zero test cases passed"); after, 19 tests: 13 pass, 6 skip (this one, and the five that already skip there: hip_prefill_hcd_exact_parity, hip_prompt_attn_wmma, hip_prefill_hipblaslt_gemm, hip_prefill_fused_moe, hip_prefill_fused_iq), 0 fail.

Developed with an AI coding assistant; every number above was measured on 2x RX 6900 XT (gfx1030, PCIe 4.0 x8 each) / Ryzen 5 5600X, ROCm 10.0.

… matrix cores instead of failing

On gfx1030 (RX 6900 XT) the WMMA GEMM kernel declines every one of the 440 shapes, the suite counts zero passes and
ends with "FAILED: zero test cases passed (all were declined or skipped)". Measured on 0.1.40.1 (82f46a8): the HIP
ctest run fails this one test on every RDNA2 card. The test now checks the arch first with the kernels' own
gfx_arch_is_gfx11_wmma and exits 77 where there are no matrix cores, and CMake marks 77 as SKIP_RETURN_CODE, the
way hip_prompt_attn_wmma already does. The zero-passes failure stays for cards that have WMMA.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd1NThrczgiCemKLboAZ2D
@Niko1221

Niko1221 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thank you, xjc10. The WMMA GEMM parity test skips on cards without matrix cores. It is in 0.1.40.2 with your authorship kept.

@Niko1221 Niko1221 closed this Oct 7, 2026
0xrjman pushed a commit to 0xrjman/Strata that referenced this pull request Oct 7, 2026
…res instead of failing (Niko1221#1148)

RDNA2 and older and gfx906 have no WMMA; the kernel declines every shape there. The test now exits 77, which CMake
reports as a skip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants