Skip to content

Commit 07ad5f9

Browse files
Alcpzggerganov
authored andcommitted
sycl : update support conditions (llama/9394)
* sycl : update support condition to im2col Signed-off-by: Alberto Cabrera <[email protected]> * Added TODO to remind supporting FP32 im2col --------- Signed-off-by: Alberto Cabrera <[email protected]>
1 parent 705f30f commit 07ad5f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-sycl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5138,13 +5138,17 @@ GGML_CALL static bool ggml_backend_sycl_supports_op(ggml_backend_t backend, cons
51385138
case GGML_OP_SCALE:
51395139
case GGML_OP_SQR:
51405140
case GGML_OP_CLAMP:
5141+
return true;
51415142
case GGML_OP_CONT:
5143+
return op->src[0]->type != GGML_TYPE_BF16;
51425144
case GGML_OP_DIAG_MASK_INF:
51435145
case GGML_OP_SOFT_MAX:
51445146
return true;
51455147
case GGML_OP_ROPE:
51465148
return ggml_is_contiguous(op->src[0]);
51475149
case GGML_OP_IM2COL:
5150+
// TODO: add support for the new F32 operations
5151+
return op->src[0]->type == GGML_TYPE_F16;
51485152
case GGML_OP_POOL_2D:
51495153
case GGML_OP_SUM_ROWS:
51505154
case GGML_OP_ARGSORT:

0 commit comments

Comments
 (0)