We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ea017 commit 60bc85cCopy full SHA for 60bc85c
ggml/src/ggml-vulkan/ggml-vulkan.cpp
@@ -12384,7 +12384,10 @@ static void ggml_vk_synchronize(ggml_backend_vk_context * ctx) {
12384
}
12385
12386
if (ctx->submit_pending) {
12387
- ctx->device->compute_queue.queue.submit({}, ctx->fence);
+ {
12388
+ std::lock_guard<std::mutex> guard(queue_mutex);
12389
+ ctx->device->compute_queue.queue.submit({}, ctx->fence);
12390
+ }
12391
ggml_vk_wait_for_fence(ctx);
12392
ctx->submit_pending = false;
12393
0 commit comments