]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan: don't hold the device mutex while compiling pipelines (#23641)
authorJeff Bolz <redacted>
Mon, 1 Jun 2026 12:04:01 +0000 (07:04 -0500)
committerGitHub <redacted>
Mon, 1 Jun 2026 12:04:01 +0000 (14:04 +0200)
commit55ac0909e5526efa950ce69d06ad0e8e7ebc7e0a
tree48034d8ab62dc7c63dceb69735d853e1f54a110d
parentbef69f1306285b95ff65fbd726f9dc4958f205d0
vulkan: don't hold the device mutex while compiling pipelines (#23641)

* vulkan: don't hold the device mutex while compiling pipelines

We need to hold a lock while we traverse all pipelines and lazily initialize
them, but we don't need to hold it while the pipeline is being compiled. And
it doesn't need to be the same lock as the device mutex. We call load_shaders
each time a pipeline is needed, so we only need to compile that one pipeline
(and, for example, don't want to end up compiling a pipeline that another
thread should be compiling).

* remove 'needed'
ggml/src/ggml-vulkan/ggml-vulkan.cpp