kv_hybrid_parity: the tensor-core prompt kernel is sm_70+ (base launch gate), so a refusal below sm_70 passes

This commit is contained in:
Niko1221 committed 2026-10-15 10:47:40 +02:00
1 parent 456ec79c0a
commit 5389eb9db8
1 file changed
+10 -2
+10 -2
View File
@@ -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);