]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan: Fix data races in coopmat1 mul_mat(_id) (#20084)
authorJeff Bolz <redacted>
Sun, 8 Mar 2026 11:33:48 +0000 (06:33 -0500)
committerGitHub <redacted>
Sun, 8 Mar 2026 11:33:48 +0000 (12:33 +0100)
commitcd18a50ea573c081e7fa5604c85e4d571fd6ae4f
treebce0be2e8daaac192cb7fb6c0e586f84568dec0f
parenta976ff081b4657b67f48295bbefc030d9d899b17
vulkan: Fix data races in coopmat1 mul_mat(_id) (#20084)

* vulkan: Fix data races in coopmat1 mul_mat(_id)

Add barriers between coopmat store and regular loads. We sort of got away with
this because it was the same subgroup accessing the values, but it's still a
race and may not work.

* switch to subgroup control barriers
ggml/src/ggml-vulkan/vulkan-shaders/mul_mm.comp