mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-11-26 23:29:34 +00:00
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:
parent
e0f884d405
commit
267dda8180
3 changed files with 0 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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__,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue