From 6dffb74a1fb9f2a2b880cbb41da2d42227e67059 Mon Sep 17 00:00:00 2001 From: vallicgrr <2245906+vallicgrr@users.noreply.github.com> Date: Tue, 6 Oct 2026 09:05:03 +0900 Subject: [PATCH] tests: hip_prefill_gemm crosses an RDNA2 SGEMM slice boundary (T 3300, K 10240; FP16 beta 1 with a padded ldy, and BF16) --- tests/hip/prefill_gemm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hip/prefill_gemm.cpp b/tests/hip/prefill_gemm.cpp index dca156e7..6c2cad29 100644 --- a/tests/hip/prefill_gemm.cpp +++ b/tests/hip/prefill_gemm.cpp @@ -103,6 +103,11 @@ int main() { ok=run(gemm,stream,true,17,48,2560,64,1) && ok; ok=run(gemm,stream,false,32,640,2560,648,0) && ok; ok=run(gemm,stream,false,64,2560,640,2560,1) && ok; + // RDNA2 (gfx103x) runs N >= 64 as an SGEMM on FP32 copies, the activations in slices of 32M floats + // (Gemm::rdna2_sgemm): at K = 10240 a slice is 3,276 rows, so these cross a slice boundary (padded ldy, beta 1). + // Other cards run them on the native path. + ok=run(gemm,stream,false,3300,64,10240,72,1) && ok; + ok=run(gemm,stream,true,3300,64,10240,64,0) && ok; } { // The FP16-io mode. The scratch holds 64 rows at K = 2560, so bf16()'s W conversion slices N = 96 in two