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