metal : fix ggml_metal_supports_op

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-05-09 14:00:35 +03:00
parent 1174def5dc
commit fecb81e302
No known key found for this signature in database
GPG key ID: BF970631944C16B7

View file

@ -772,8 +772,9 @@ static bool ggml_metal_supports_op(const struct ggml_metal_context * ctx, const
case GGML_OP_TIMESTEP_EMBEDDING:
case GGML_OP_ARGSORT:
case GGML_OP_LEAKY_RELU:
case GGML_OP_FLASH_ATTN_EXT:
return true;
case GGML_OP_FLASH_ATTN_EXT:
return ctx->support_simdgroup_mm; // TODO: over-restricted for vec-kernels
case GGML_OP_MUL_MAT:
case GGML_OP_MUL_MAT_ID:
return ctx->support_simdgroup_reduction &&