8000 opencl: mark `mul_mat` `f32f32` as supporting non-contiguous tensors … · ggml-org/llama.cpp@1701d4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1701d4c

Browse files
authored
opencl: mark mul_mat f32f32 as supporting non-contiguous tensors (#13790)
1 parent bef8176 commit 1701d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ static bool ggml_opencl_supports_op(ggml_backend_dev_t dev, const struct ggml_te
18771877
if (op->src[0]->type == GGML_TYPE_F16) {
18781878
return true;
18791879
} else if (op->src[0]->type == GGML_TYPE_F32) {
1880-
return op->src[1]->type == GGML_TYPE_F32 && ggml_is_contiguous(op->src[0]) && ggml_is_contiguous(op->src[1]);
1880+
return op->src[1]->type == GGML_TYPE_F32;
18811881
} else if (op->src[0]->type == GGML_TYPE_Q4_0 ||
18821882
op->src[0]->type == GGML_TYPE_Q6_K) {
18831883
return op->src[1]->type == GGML_TYPE_F32 && ggml_is_contiguous(op->src[0]) && ggml_is_contiguous(op->src[1]);

0 commit comments

Comments
 (0)
0