File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -240,15 +240,19 @@ static std::list<ggml_vk_device_cpp> ggml_vk_available_devices_internal(size_t m
240
240
const auto & physical_device = physical_devices[i];
241
241
242
242
VkPhysicalDeviceProperties dev_props = physical_device.getProperties ();
243
- VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties ();
244
243
const uint32_t major = VK_VERSION_MAJOR (dev_props.apiVersion );
245
244
const uint32_t minor = VK_VERSION_MINOR (dev_props.apiVersion );
246
245
if (major < 1 || minor < 2 )
247
246
continue ;
248
247
248
+ if (dev_props.vendorID == 0x8086 )
249
+ continue ; // Intel GPUs not supported
250
+
249
251
if (!ggml_vk_checkPhysicalDeviceFeatures (physical_device))
250
252
continue ;
251
253
254
+ VkPhysicalDeviceMemoryProperties memoryProperties = physical_device.getMemoryProperties ();
255
+
252
256
size_t heapSize = 0 ;
253
257
for (uint32_t j = 0 ; j < memoryProperties.memoryHeapCount ; ++j) {
254
258
VkMemoryHeap heap = memoryProperties.memoryHeaps [j];
You can’t perform that action at this time.
0 commit comments