From 9bbedc51cce646be6408cb48c66a0658c9276890 Mon Sep 17 00:00:00 2001 From: Akarshan Biswas Date: Mon, 5 May 2025 13:39:10 +0530 Subject: [PATCH] SYCL: Disable mul_mat kernels for noncontiguous tensor b (llama/13308) ggml-ci --- ggml/src/ggml-sycl/ggml-sycl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index 66b6f2cc..72cdbbcc 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -3873,6 +3873,9 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g if (a->ne[3] != b->ne[3]) { return false; } + if (!ggml_is_contiguous(b)) { + return false; + } ggml_type a_type = a->type; if (a_type == GGML_TYPE_IQ4_NL || a_type == GGML_TYPE_IQ4_XS || a_type == GGML_TYPE_IQ3_XXS || a_type == GGML_TYPE_IQ3_S ||