mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 01:41:37 +00:00
vulkan: Make device memory check more portable (#15939)
This commit is contained in:
parent
704d90c987
commit
6c88ad8fa7
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue