Skip to content

Commit f47c1d7

Browse files
authored
SYCL: disable faulty fp16 exp kernel (#14395)
* SYCL: disable faulty fp16 CPU exponent for now * Revert "SYCL: disable faulty fp16 CPU exponent for now" This reverts commit ed0aab1. * SYCL: disable faulty fp16 CPU exponent for now * Fix logic of disabling exponent kernel
1 parent a5d1fb6 commit f47c1d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4215,7 +4215,6 @@ 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:
42194218
case GGML_UNARY_OP_SGN:
42204219
case GGML_UNARY_OP_ABS:
42214220
case GGML_UNARY_OP_ELU:
@@ -4224,6 +4223,9 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
42244223
#else
42254224
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);
42264225
#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;
42274229
default:
42284230
return false;
42294231
}

0 commit comments

Comments
 (0)