From: Georgi Gerganov Date: Tue, 23 Jan 2024 13:50:56 +0000 (+0200) Subject: metal : disable support for MUL_MAT F32 x F16 X-Git-Tag: upstream/0.0.1642~1045 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ee1e041122c6fa04149a35b8e4390aec74318552;p=pkg%2Fggml%2Fsources%2Fggml metal : disable support for MUL_MAT F32 x F16 --- diff --git a/src/ggml-metal.m b/src/ggml-metal.m index 912ddc83..4b3eb491 100644 --- a/src/ggml-metal.m +++ b/src/ggml-metal.m @@ -668,7 +668,8 @@ static bool ggml_metal_supports_op(const struct ggml_metal_context * ctx, const return true; case GGML_OP_MUL_MAT: case GGML_OP_MUL_MAT_ID: - return ctx->support_simdgroup_reduction; + return ctx->support_simdgroup_reduction && + (op->src[0]->type != GGML_TYPE_F32 || op->src[1]->type == GGML_TYPE_F32); case GGML_OP_CPY: case GGML_OP_DUP: case GGML_OP_CONT: