Browse Source

SYCL: Disable mul_mat kernels for noncontiguous tensor b (#13308)

ggml-ci
Akarshan Biswas 8 tháng trước cách đây
mục cha
commit
66645a5285
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      ggml/src/ggml-sycl/ggml-sycl.cpp

+ 3 - 0
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]) {
                 if (a->ne[3] != b->ne[3]) {
                     return false;
                     return false;
                 }
                 }
+                if (!ggml_is_contiguous(b)) {
+                    return false;
+                }
                 ggml_type a_type = a->type;
                 ggml_type a_type = a->type;
                 if (a_type == GGML_TYPE_IQ4_NL  || a_type == GGML_TYPE_IQ4_XS ||
                 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  ||
                     a_type == GGML_TYPE_IQ3_XXS || a_type == GGML_TYPE_IQ3_S  ||