]> git.djapps.eu Git - pkg/ggml/sources/ggml/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 16:30:22 +0000 (18:30 +0200)
commitc0064ca514d14a1f702e4d6648e56daba620e60c
treed477f810dd45d9c609a0701af8a2240c2917990b
parent30a0c4c981d18cab19410c32aef1b50cefc33e74
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.
src/ggml-vulkan/ggml-vulkan.cpp