From 11753d6c90d825a854574a473d35677cf0acbe35 Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Mon, 12 Feb 2024 13:12:06 -0500 Subject: [PATCH] kompute : do not list Intel GPUs as they are unsupported (#14) --- ggml/src/ggml-kompute.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ggml/src/ggml-kompute.cpp b/ggml/src/ggml-kompute.cpp index 246b980b9f1e7..583ca51701a94 100644 --- a/ggml/src/ggml-kompute.cpp +++ b/ggml/src/ggml-kompute.cpp @@ -241,15 +241,19 @@ static std::list ggml_vk_available_devices_internal(size_t m const auto & physical_device = physical_devices[i]; VkPhysicalDeviceProperties dev_props = physical_device.getProperties(); - VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties(); const uint32_t major = VK_VERSION_MAJOR(dev_props.apiVersion); const uint32_t minor = VK_VERSION_MINOR(dev_props.apiVersion); if (major < 1 || minor < 2) continue; + if (dev_props.vendorID == 0x8086) + continue; // Intel GPUs not supported + if (!ggml_vk_checkPhysicalDeviceFeatures(physical_device)) continue; + VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties(); + size_t heapSize = 0; for (uint32_t j = 0; j < memoryProperties.memoryHeapCount; ++j) { VkMemoryHeap heap = memoryProperties.memoryHeaps[j];