Skip to content

Commit fa22d2c

Browse files
RbiessyMinh141120
authored andcommitted
ggml-cpu: sycl: Re-enable exp f16 (ggml-org#14462)
1 parent 69af9aa commit fa22d2c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,6 +4215,7 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
42154215
case GGML_UNARY_OP_GELU_QUICK:
42164216
case GGML_UNARY_OP_GELU_ERF:
42174217
case GGML_UNARY_OP_TANH:
4218+
case GGML_UNARY_OP_EXP:
42184219
case GGML_UNARY_OP_SGN:
42194220
case GGML_UNARY_OP_ABS:
42204221
case GGML_UNARY_OP_ELU:
@@ -4223,9 +4224,6 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
42234224
#else
42244225
return ggml_is_contiguous(op->src[0]) && (op->src[0]->type == GGML_TYPE_F32 && op->type == GGML_TYPE_F32) && (op->type == op->src[0]->type);
42254226
#endif
4226-
case GGML_UNARY_OP_EXP:
4227-
// Disable FP16 until we find out the root cause of failing fp16 sycl::exp
4228-
return ggml_is_contiguous(op->src[0]) && (op->type == op->src[0]->type) && op->src[0]->type == GGML_TYPE_F32;
42294227
default:
42304228
return false;
42314229
}

0 commit comments

Comments
 (0)