mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml:fix finding transfer queue family index error (#6094)
Co-authored-by: GainLee <ligen@meizu.com>
This commit is contained in:
		| @@ -710,6 +710,12 @@ static uint32_t ggml_vk_find_queue_family_index(std::vector<vk::QueueFamilyPrope | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // All commands that are allowed on a queue that supports transfer operations are also allowed on a queue that supports either graphics or compute operations. | ||||||
|  |     // Thus, if the capabilities of a queue family include VK_QUEUE_GRAPHICS_BIT or VK_QUEUE_COMPUTE_BIT, then reporting the VK_QUEUE_TRANSFER_BIT capability separately for that queue family is optional. | ||||||
|  |     if (compute_index >= 0) { | ||||||
|  |         return compute_index; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     std::cerr << "ggml_vulkan: No suitable queue family index found." << std::endl; |     std::cerr << "ggml_vulkan: No suitable queue family index found." << std::endl; | ||||||
|  |  | ||||||
|     for(auto &q_family : queue_family_props) { |     for(auto &q_family : queue_family_props) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 GainLee
					GainLee