metal : assert shared memory padding (#27951)

* metal : assert shared memory padding

* cont : add ref
This commit is contained in:
Georgi Gerganov
2026-08-29 17:55:15 +03:00
committed by GitHub
parent 17252c769a
commit 3173a56471
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -948,7 +948,7 @@ int ggml_metal_op_sum(ggml_metal_op_t ctx, int idx) {
ggml_metal_encoder_set_buffer (enc, ggml_metal_get_buffer_id(op->src[0]), 1);
ggml_metal_encoder_set_buffer (enc, ggml_metal_get_buffer_id(op), 2);
ggml_metal_encoder_set_threadgroup_memory_size(enc, nsg * sizeof(float), 0);
ggml_metal_encoder_set_threadgroup_memory_size(enc, GGML_PAD(nsg * sizeof(float), 16), 0);
ggml_metal_encoder_dispatch_threadgroups(enc, 1, 1, 1, nth, 1, 1);