Skip to content

Commit 9a3674d

Browse files
committed
kompute : do not list Intel GPUs as they are unsupported (#14)
1 parent 04d7e65 commit 9a3674d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ggml/src/ggml-kompute.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,19 @@ static std::list<ggml_vk_device_cpp> ggml_vk_available_devices_internal(size_t m
241241
const auto & physical_device = physical_devices[i];
242242

243243
VkPhysicalDeviceProperties dev_props = physical_device.getProperties();
244-
VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties();
245244
const uint32_t major = VK_VERSION_MAJOR(dev_props.apiVersion);
246245
const uint32_t minor = VK_VERSION_MINOR(dev_props.apiVersion);
247246
if (major < 1 || minor < 2)
248247
continue;
249248

249+
if (dev_props.vendorID == 0x8086)
250+
continue; // Intel GPUs not supported
251+
250252
if (!ggml_vk_checkPhysicalDeviceFeatures(physical_device))
251253
continue;
252254

255+
VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties();
256+
253257
size_t heapSize = 0;
254258
for (uint32_t j = 0; j < memoryProperties.memoryHeapCount; ++j) {
255259
VkMemoryHeap heap = memoryProperties.memoryHeaps[j];

0 commit comments

Comments
 (0)