ggerganov commited on
Commit
7fbc01f
·
unverified ·
1 Parent(s): e96ba7d

metal : disable support for MUL_MAT F32 x F16

Browse files
Files changed (1) hide show
  1. ggml-metal.m +2 -1
ggml-metal.m CHANGED
@@ -668,7 +668,8 @@ static bool ggml_metal_supports_op(const struct ggml_metal_context * ctx, const
668
  return true;
669
  case GGML_OP_MUL_MAT:
670
  case GGML_OP_MUL_MAT_ID:
671
- return ctx->support_simdgroup_reduction;
 
672
  case GGML_OP_CPY:
673
  case GGML_OP_DUP:
674
  case GGML_OP_CONT:
 
668
  return true;
669
  case GGML_OP_MUL_MAT:
670
  case GGML_OP_MUL_MAT_ID:
671
+ return ctx->support_simdgroup_reduction &&
672
+ (op->src[0]->type != GGML_TYPE_F32 || op->src[1]->type == GGML_TYPE_F32);
673
  case GGML_OP_CPY:
674
  case GGML_OP_DUP:
675
  case GGML_OP_CONT: