]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
vulkan: Fix test-thread-safety crashes (llama/17024)
authorJeff Bolz <redacted>
Sat, 8 Nov 2025 07:39:45 +0000 (01:39 -0600)
committerGeorgi Gerganov <redacted>
Sun, 9 Nov 2025 21:38:03 +0000 (23:38 +0200)
commit4eef518167ac1d89acb400ad1fa4e79b7a9f6a37
tree614ce1e948de1c0eb695f0b75f99ad25f7654367
parent358f77aca7c554fcc38f172f35bb26af98acd2c6
vulkan: Fix test-thread-safety crashes (llama/17024)

The std::map pipeline_flash_attn_f32_f16 could be searched and inserted at the
same time, which needs to hold the lock. To be safe, hold the lock for all of
ggml_vk_load_shaders.
ggml/src/ggml-vulkan/ggml-vulkan.cpp