whisper.cpp/ggml
Daniel Müller 3bb8999a1f
ggml-vulkan: serialize racy vk_instance initialization
When calling whisper_init_from_file_with_params_no_state() from multiple
threads with the Vulkan backend enabled, segfaults abound. The problem
seems to be that vk_instance initialization is not serialized properly.
Introduce a mutex to fix the problem. It needs to be recursive because
of the following call chain:
  ggml_vk_get_device()
  -> ggml_backend_vk_reg()
  -> ggml_vk_instance_init()
2026-01-31 08:49:05 -08:00
..
cmake ggml : Parallelize quant LUT init (llama/23595) 2026-05-25 12:26:07 +03:00
include mtmd/ggml: add ggml_build_forward_order (llama/26649) 2026-08-07 21:59:49 +03:00
src ggml-vulkan: serialize racy vk_instance initialization 2026-01-31 08:49:05 -08:00
.gitignore whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
CMakeLists.txt ggml : bump version to 0.19.0 (ggml/1581) 2026-08-07 21:59:49 +03:00