whisper.cpp/ggml/src/ggml-metal
Developer-Ecosystem-Engineering 21da84303e
metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962)
* Optimize Metal Tensor API usage for matmul2d

Separates the Metal Tensor API (matmul2d) path in kernel_mul_mm into its own standalone kernel, gated by GGML_METAL_HAS_TENSOR.

The legacy simdgroup_matrix kernel is preserved under #else.

Previously both paths were interleaved via #ifdef blocks within a single kernel, forcing the tensor path to share the legacy kernel's data layout and threadgroup memory scheme. Splitting the kernel enabled memory and dispatch optimizations that weren't possible when the two paths shared code structure.

* cont : cleanup

* cont : cleanup

* cont : cleanup

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2026-04-30 11:29:19 +03:00
..
CMakeLists.txt docs : Minor cleanups (llama/19252) 2026-02-08 09:29:10 +02:00
ggml-metal-common.cpp models : optimize qwen3next graph (llama/19375) 2026-02-15 21:44:37 +02:00
ggml-metal-common.h metal : refactor + optimize v2 (llama/15995) 2025-09-20 13:46:10 +03:00
ggml-metal-context.h metal : support virtual devices (llama/18919) 2026-02-08 09:29:10 +02:00
ggml-metal-context.m metal : avoid divisions in bin kernel (llama/20426) 2026-03-16 13:10:15 +02:00
ggml-metal-device.cpp metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00
ggml-metal-device.h metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00
ggml-metal-device.m metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00
ggml-metal-impl.h metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00
ggml-metal-ops.cpp metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00
ggml-metal-ops.h metal: Implement ROLL op (llama/21946) 2026-04-30 11:29:11 +03:00
ggml-metal.cpp metal : workaround macOS GPU interactivity watchdog (llama/22216) 2026-04-30 11:29:15 +03:00
ggml-metal.metal metal : optimize Metal Tensor API usage for GGML_OP_MUL_MAT (llama/20962) 2026-04-30 11:29:19 +03:00