]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan: fuse mul_mat+add and mul_mat_id+add_id (#16868)
authorJeff Bolz <redacted>
Sat, 1 Nov 2025 05:45:28 +0000 (00:45 -0500)
committerGitHub <redacted>
Sat, 1 Nov 2025 05:45:28 +0000 (06:45 +0100)
commit2e76e013600cb0d51ccf158571ca1d0502952a07
tree2d294b1cbef30b1f9f6da5e2faf7e387fb08f320
parentd3dc9dd898be805c23a408cc36daed5b3bf29221
vulkan: fuse mul_mat+add and mul_mat_id+add_id (#16868)

* vulkan: fuse mul_mat+add and mul_mat_id+add_id

The fusion is only applied for the mat-vec mul paths.

* Apply suggestions from code review

Co-authored-by: Sigbjørn Skjæret <redacted>
* fix 32b build

---------

Co-authored-by: Sigbjørn Skjæret <redacted>
ggml/src/ggml-vulkan/ggml-vulkan.cpp
ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_base.glsl
ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_nc.comp
ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_p021.comp