Skip to content

Commit f7b4bfd

Browse files
committed
add concat support condition
1 parent e13041c commit f7b4bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-sycl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5293,7 +5293,7 @@ GGML_CALL static bool ggml_backend_sycl_supports_op(ggml_backend_t backend, cons
52935293
{
52945294
ggml_type src0_type = op->src[0]->type;
52955295
int dim = op->op_params[0];
5296-
return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16 && dim == 2;
5296+
return ggml_is_contiguous(op->src[0]) && ggml_is_contiguous(op->src[1]) && src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16 && dim == 2;
52975297
} break;
52985298
case GGML_OP_DUP:
52995299
case GGML_OP_NONE:

0 commit comments

Comments
 (0)