From: Mathieu Baudier Date: Fri, 12 Sep 2025 07:06:20 +0000 (+0200) Subject: vulkan: Make device memory check more portable (llama/15939) X-Git-Tag: v0.9.1~39 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=399ab32cfc65dd519b3a95eae584d7dcb9ffb68f;p=pkg%2Fggml%2Fsources%2Fggml vulkan: Make device memory check more portable (llama/15939) --- diff --git a/src/ggml-vulkan/ggml-vulkan.cpp b/src/ggml-vulkan/ggml-vulkan.cpp index 178d8eb3..57a9a94b 100644 --- a/src/ggml-vulkan/ggml-vulkan.cpp +++ b/src/ggml-vulkan/ggml-vulkan.cpp @@ -1960,7 +1960,7 @@ static vk_buffer ggml_vk_create_buffer(vk_device& device, size_t size, const std } } - if (buf->device_memory == VK_NULL_HANDLE) { + if (!buf->device_memory) { device->device.destroyBuffer(buf->buffer); throw vk::OutOfDeviceMemoryError("No suitable memory type found"); }