From 3742b6c7068d3a6802c0b6f0f1a6656c4dfc7e19 Mon Sep 17 00:00:00 2001 From: 0cc4m Date: Tue, 23 Jan 2024 17:45:50 +0100 Subject: [PATCH] Fix single queue logic --- ggml-vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-vulkan.cpp b/ggml-vulkan.cpp index b6ff7ec19..93dacfad9 100644 --- a/ggml-vulkan.cpp +++ b/ggml-vulkan.cpp @@ -1029,7 +1029,7 @@ std::cerr << "ggml_vulkan: Validation layers enabled" << std::endl; const uint32_t transfer_queue_family_index = ggml_vk_find_queue_family_index(queue_family_props, vk::QueueFlagBits::eTransfer, vk::QueueFlagBits::eCompute | vk::QueueFlagBits::eGraphics, compute_queue_family_index, 1); const float priorities[] = { 1.0f, 1.0f }; - const bool single_queue = compute_queue_family_index != transfer_queue_family_index && queue_family_props[compute_queue_family_index].queueCount == 1; + const bool single_queue = compute_queue_family_index == transfer_queue_family_index && queue_family_props[compute_queue_family_index].queueCount == 1; std::vector device_queue_create_infos; if (compute_queue_family_index != transfer_queue_family_index) {