sycl: Remove check for host waits in fattn-mkl from graph checks (#31208)

Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
This commit is contained in:
Todd Malsbary 2026-11-25 21:40:10 -08:00 • committed by GitHub
parent e0f884d405
commit 267dda8180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 12 deletions

View file

@ -416,10 +416,6 @@ bool ggml_sycl_flash_attn_ext_supported(int device, const ggml_tensor * dst) {
return ggml_sycl_get_best_fattn_kernel(device, dst) != BEST_FATTN_KERNEL_NONE;
}
bool ggml_sycl_flash_attn_ext_needs_sync(int device, const ggml_tensor * dst) {
return ggml_sycl_get_best_fattn_kernel(device, dst) == BEST_FATTN_KERNEL_MKL;
}
bool ggml_sycl_flash_attn_ext_uses_onednn(int device, const ggml_tensor * dst) {
return ggml_sycl_get_best_fattn_kernel(device, dst) == BEST_FATTN_KERNEL_ONEDNN;
}

View file

@ -19,9 +19,6 @@ void ggml_sycl_flash_attn_ext(ggml_backend_sycl_context & ctx, ggml_tensor * dst
bool ggml_sycl_flash_attn_ext_supported(int device, const ggml_tensor * dst);
// Reports if flash attention runs this node with the oneMKL kernel, which waits on the host
bool ggml_sycl_flash_attn_ext_needs_sync(int device, const ggml_tensor * dst);
// Reports if flash attention runs this node with the oneDNN kernel
bool ggml_sycl_flash_attn_ext_uses_onednn(int device, const ggml_tensor * dst);

View file

@ -7030,11 +7030,6 @@ static bool check_graph_compatibility(ggml_backend_sycl_context * ctx, ggml_cgra
}
break;
case GGML_OP_FLASH_ATTN_EXT:
if (ggml_sycl_flash_attn_ext_needs_sync(ctx->device, node)) {
GGML_LOG_DEBUG("%s: disabling SYCL graphs due to host wait in %s\n", __func__,
ggml_op_name(node_op));
return false;
}
#ifndef GGML_SYCL_GRAPH_DNNL_SUPPORTED
if (ggml_sycl_flash_attn_ext_uses_onednn(ctx->device, node)) {
GGML_LOG_DEBUG("%s: disabling SYCL graphs due to %s using oneDNN\n", __func__,