From 5389eb9db873596072d48df3e8a98ae83f4538d4 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 15 Oct 2026 10:47:40 +0200 Subject: [PATCH] kv_hybrid_parity: the tensor-core prompt kernel is sm_70+ (base launch gate), so a refusal below sm_70 passes --- src/kernels/kv_hybrid_parity.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/kernels/kv_hybrid_parity.cpp b/src/kernels/kv_hybrid_parity.cpp index ca371782..58d50a60 100644 --- a/src/kernels/kv_hybrid_parity.cpp +++ b/src/kernels/kv_hybrid_parity.cpp @@ -333,8 +333,16 @@ int main() { // AMD: the tensor-core prompt path is CUDA-only, so it refuses every pool and the old kernel runs std::printf("[5/5] qsa_prompt_attn mode 3: PASS (refused on HIP - the old kernel runs)\n"); #else - std::printf("[5/5] qsa_prompt_attn mode 3: FAIL (refused the hybrid pools)\n"); - g_fail = 1; + // a card below compute capability 7.0 (Pascal) never had the tensor-core prompt kernels: the old kernel runs + int dev5 = 0, major5 = 0; + cudaGetDevice(&dev5); + cudaDeviceGetAttribute(&major5, cudaDevAttrComputeCapabilityMajor, dev5); + if (major5 > 0 && major5 < 7) { + std::printf("[5/5] qsa_prompt_attn mode 3: PASS (refused below sm_70 - the old kernel runs)\n"); + } else { + std::printf("[5/5] qsa_prompt_attn mode 3: FAIL (refused the hybrid pools)\n"); + g_fail = 1; + } #endif } else { k::fwht256_inplace_cuda(d_at4, QH, nullptr);