]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : extend ggml_pool_1d + metal (#16429)
authorThore Koritzius <redacted>
Fri, 16 Jan 2026 14:59:56 +0000 (15:59 +0100)
committerGitHub <redacted>
Fri, 16 Jan 2026 14:59:56 +0000 (16:59 +0200)
commit388ce822415f24c60fcf164a321455f1e008cafb
treedb2e180ade0e68e7403b0bfb94364b66e2afa182
parent6ba6a3c76f1981017bff8a8c0b8857e88db1cdb9
ggml : extend ggml_pool_1d + metal (#16429)

* chore: resolve conflicts

* feat: ggml metal impl

* fix: ggml_metal_kargs_pool_1d struct

* fix: require contiguous input

* chore: test pool_1d

* chore: limit pool1d test cases to p0=0 and s0=k0 to conform with asserts

* chore: add p0 and s0 to testing

* fix: allow padding for cpu and metal

* Update ggml/src/ggml-metal/ggml-metal.metal

* fix: correct single-threaded loop

* ggml : cleanup

* tests : add ne[1] != 1 tests

* fix: ne[1] handling in np

* cont : fixes

---------

Co-authored-by: Georgi Gerganov <redacted>
ggml/src/ggml-cpu/ops.cpp
ggml/src/ggml-metal/ggml-metal-device.cpp
ggml/src/ggml-metal/ggml-metal-device.h
ggml/src/ggml-metal/ggml-metal-device.m
ggml/src/ggml-metal/ggml-metal-impl.h
ggml/src/ggml-metal/ggml-metal-ops.cpp
ggml/src/ggml-metal/ggml-metal-ops.h
ggml/src/ggml-metal/ggml-metal.metal
ggml/src/ggml.c
tests/test-backend-ops.cpp