]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
metal : refactor + optimize v2 (#15995)
authorGeorgi Gerganov <redacted>
Wed, 17 Sep 2025 17:38:12 +0000 (20:38 +0300)
committerGitHub <redacted>
Wed, 17 Sep 2025 17:38:12 +0000 (20:38 +0300)
commit0320ac5264279d74f8ee91bafa6c90e9ab9bbb91
treec16140f03d7e05f35cee2630870f396dbe9d152a
parenta7a98e0fffed794396b3fbad4dcdbbc184963645
metal : refactor + optimize v2 (#15995)

* metal : improve naming

* metal : refactor device

ggml-ci

* cont : props

ggml-ci

* metal : apply ggml_mem_ranges_t

ggml-ci

* metal : remove GGML_METAL_USE_BF16

ggml-ci

* metal : refactor device buffer

ggml-ci

* cont : fix naming

* metal : sync before destroying the backend

ggml-ci

* metal : refactor context

ggml-ci

* metal : migrate ggml-metal.m to ggml-metal.cpp

ggml-ci

* metal : adjust ops API

ggml-ci

* metal : use C++ to store piplienes

ggml-ci

* metal : migrate ops to separate functions

ggml-ci

* metal : add ggml_metal_library_t

ggml-ci

* metal : improve naming

ggml-ci

* metal : cleanp

ggml-ci

* metal : add support for GGML_OP_LOG

ggml-ci

* metal : fix error handling

ggml-ci
19 files changed:
ci/run.sh
ggml/CMakeLists.txt
ggml/include/ggml-metal.h
ggml/include/ggml.h
ggml/src/ggml-metal/CMakeLists.txt
ggml/src/ggml-metal/ggml-metal-common.cpp
ggml/src/ggml-metal/ggml-metal-common.h
ggml/src/ggml-metal/ggml-metal-context.h [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-context.m [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-device.cpp [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-device.h [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-device.m [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-impl.h
ggml/src/ggml-metal/ggml-metal-ops.cpp [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal-ops.h [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal.cpp [new file with mode: 0644]
ggml/src/ggml-metal/ggml-metal.m [deleted file]
ggml/src/ggml-metal/ggml-metal.metal
tests/test-backend-ops.cpp