Spaces:
Running
Running
Commit
·
4dc8a81
1
Parent(s):
18afa4b
CUDA: fix FA logic for PTX 7.0 and CC >= 7.5 (llama/12222)
Browse files
ggml/src/ggml-cuda/fattn.cu
CHANGED
|
@@ -310,7 +310,7 @@ void ggml_cuda_flash_attn_ext(ggml_backend_cuda_context & ctx, ggml_tensor * dst
|
|
| 310 |
}
|
| 311 |
|
| 312 |
// The MMA implementation needs Turing or newer, use the old WMMA code for Volta:
|
| 313 |
-
if (cc
|
| 314 |
ggml_cuda_flash_attn_ext_wmma_f16(ctx, dst);
|
| 315 |
return;
|
| 316 |
}
|
|
|
|
| 310 |
}
|
| 311 |
|
| 312 |
// The MMA implementation needs Turing or newer, use the old WMMA code for Volta:
|
| 313 |
+
if (fp16_mma_available(cc) && !new_mma_available(cc)) {
|
| 314 |
ggml_cuda_flash_attn_ext_wmma_f16(ctx, dst);
|
| 315 |
return;
|
| 316 |
}
|