Skip to content

Commit

Permalink
kompute : do not list Intel GPUs as they are unsupported (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Sep 26, 2024
1 parent e8bec6f commit 11753d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ggml/src/ggml-kompute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,19 @@ static std::list<ggml_vk_device_cpp> 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];
Expand Down

0 comments on commit 11753d6

Please sign in to comment.