Skip to content

Commit 66645a5

Browse files
authored
SYCL: Disable mul_mat kernels for noncontiguous tensor b (ggml-org#13308)
ggml-ci
1 parent 27aa259 commit 66645a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/ggml-sycl/ggml-sycl.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -3873,6 +3873,9 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
38733873
if (a->ne[3] != b->ne[3]) {
38743874
return false;
38753875
}
3876+
if (!ggml_is_contiguous(b)) {
3877+
return false;
3878+
}
38763879
ggml_type a_type = a->type;
38773880
if (a_type == GGML_TYPE_IQ4_NL || a_type == GGML_TYPE_IQ4_XS ||
38783881
a_type == GGML_TYPE_IQ3_XXS || a_type == GGML_TYPE_IQ3_S ||

0 commit comments

Comments
 (0)