CUDA: faster Deepseek FA, add Turing support (#13435)

This commit is contained in:
Johannes Gäßler 2025-05-14 16:08:20 +02:00 committed by GitHub
parent 5e7d95e22e
commit 6da34fa276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 277 additions and 71 deletions

View file

@ -3222,7 +3222,7 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g
#endif // FLASH_ATTN_AVAILABLE
if (op->src[1]->ne[0] != op->src[2]->ne[0]) {
const int cc = ggml_cuda_info().devices[dev_ctx->device].cc;
if (!new_mma_available(cc) || cc < GGML_CUDA_CC_AMPERE) {
if (!new_mma_available(cc)) {
return false;
}
const int gqa_ratio = op->src[0]->ne[2] / op->src[1]->ne[2];