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);