MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_vk_create_queue

Function ggml_vk_create_queue

external/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2565–2577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2563 ctx->p->q->queue.submit(submit_infos, fence);
2564
2565 ctx->seqs.clear();
2566}
2567
2568static uint32_t ggml_vk_find_queue_family_index(std::vector<vk::QueueFamilyProperties>& queue_family_props, const vk::QueueFlags& required, const vk::QueueFlags& avoid, int32_t compute_index, uint32_t min_num_queues) {
2569 VK_LOG_DEBUG("ggml_vk_find_queue_family_index()");
2570 const uint32_t qfsize = queue_family_props.size();
2571
2572 // Try with avoid preferences first
2573 for (uint32_t i = 0; i < qfsize; i++) {
2574 if (queue_family_props[i].queueCount >= min_num_queues && (compute_index < 0 || i != (uint32_t) compute_index) && queue_family_props[i].queueFlags & required && !(queue_family_props[i].queueFlags & avoid)) {
2575 return i;
2576 }
2577 }
2578
2579 // Fall back to only required
2580 for (size_t i = 0; i < qfsize; i++) {

Callers 1

ggml_vk_get_deviceFunction · 0.85

Calls 1

initMethod · 0.45

Tested by

no test coverage detected