metal : fix glu dispatch with ne00 = 1 (#28306)

* metal : fix glu dispatch with ne00 = 1

* tests : disable ill-defined tests
This commit is contained in:
Georgi Gerganov
2026-09-03 13:25:41 +03:00
committed by GitHub
parent f45576aa86
commit 0df017d6dd
2 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -917,7 +917,7 @@ int ggml_metal_op_glu(ggml_metal_op_t ctx, int idx) {
const int64_t nrows = ggml_nrows(op->src[0]);
const int32_t nth = std::min(ggml_metal_pipeline_max_theads_per_threadgroup(pipeline), ne00/2);
const int32_t nth = std::max(1, std::min(ggml_metal_pipeline_max_theads_per_threadgroup(pipeline), ne00/2));
ggml_metal_encoder_set_pipeline(enc, pipeline);
ggml_metal_encoder_set_bytes (enc, &args, sizeof(args), 0);