Skip to content

Commit

Permalink
SYCL: Adjust support condition for norm operators (ggml-org#11674)
Browse files Browse the repository at this point in the history
SYCL does not support non contiguous tensors for norm operations
  • Loading branch information
qnixsynapse authored and NeoZhangJianyu committed Feb 25, 2025
1 parent c77e367 commit ee19491
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ggml/src/ggml-sycl/ggml-sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4440,14 +4440,17 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
case GGML_OP_VIEW:
case GGML_OP_PERMUTE:
case GGML_OP_TRANSPOSE:
case GGML_OP_NORM:
case GGML_OP_ADD:
case GGML_OP_ADD1:
case GGML_OP_LOG:
case GGML_OP_SUB:
case GGML_OP_MUL:
case GGML_OP_DIV:
return true;
case GGML_OP_NORM:
case GGML_OP_RMS_NORM:
case GGML_OP_GROUP_NORM:
return ggml_is_contiguous(op->src[0]);
case GGML_OP_SCALE:
case GGML_OP_SQR:
case GGML_OP_SQRT:
Expand Down Expand Up @@ -4479,7 +4482,6 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
case GGML_OP_SUM_ROWS:
case GGML_OP_ARGSORT:
case GGML_OP_ACC:
case GGML_OP_GROUP_NORM:
case GGML_OP_UPSCALE:
case GGML_OP_PAD:
case GGML_OP_LEAKY_RELU:
Expand Down

0 comments on commit ee19491

Please sign in to comment.