Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

prefill gemm: a padded BF16 X (ldx, STRATA_PF_PAD) keeps the native call on the RDNA2 SGEMM route

vallicgrr6ccdb1416729
diff --git a/src/prefill/gemm.cu b/src/prefill/gemm.cu
index f07e84fd1..183950f64 100644
--- a/src/prefill/gemm.cu
+++ b/src/prefill/gemm.cu
@@ -790,7 +790,8 @@ void Gemm::bf16(const uint16_t* X, const uint16_t* W, float* Y, int64_t T, int64
}
#endif
#if defined(__HIPCC__)
- if (rdna2_sgemm(X, W, Y, T, N, K, ldy, beta, true)) return;
+ // a padded X (STRATA_PF_PAD, ldx > K) keeps the native call: the widening copies contiguous rows
+ if (ldx == 0 && rdna2_sgemm(X, W, Y, T, N, K, ldy, beta, true)) return;
#endif
#if !defined(__HIPCC__)
#if defined(STRATA_EXPERIMENTAL_SM60)