disable external_memory_host for MoltenVK

This commit is contained in:
Jeff Bolz 2025-12-30 14:56:43 -06:00
parent ccffc464f2
commit 57a53944a0
1 changed files with 6 additions and 0 deletions

View File

@ -4489,6 +4489,12 @@ static vk_device ggml_vk_get_device(size_t idx) {
device->vendor_id = device->properties.vendorID;
device->driver_id = driver_props.driverID;
if (device->driver_id == vk::DriverId::eMoltenvk) {
// Disable external_memory_host until https://github.com/KhronosGroup/MoltenVK/pull/2622
// is available in the Vulkan SDK.
device->external_memory_host = false;
}
// Implementing the async backend interfaces seems broken on older Intel HW,
// see https://github.com/ggml-org/llama.cpp/issues/17302.
device->support_async = (device->vendor_id != VK_VENDOR_ID_INTEL ||