Skip to content

Commit 75204ba

Browse files
committed
kompute : do not list Intel GPUs as they are unsupported (#14)
Signed-off-by: Jared Van Bortel <[email protected]>
1 parent 741807c commit 75204ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ggml-kompute.cpp

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

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

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

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

0 commit comments

Comments
 (0)