Skip to content

Commit aa7d31e

Browse files
committed
Revert line that didn't have eHostCached
1 parent b6daba8 commit aa7d31e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ggml-vulkan.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,7 @@ static vk_buffer ggml_vk_create_buffer_device(size_t size) {
739739
} catch (const vk::SystemError& e) {
740740
if (vk_device.uma) {
741741
// Fall back to host memory type
742-
buf = ggml_vk_create_buffer_check(
743-
size,
744-
/* required */ vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent,
745-
/* optional */ vk::MemoryPropertyFlagBits::eHostCached);
742+
buf = ggml_vk_create_buffer_check(size, vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent);
746743
} else {
747744
std::cerr << "ggml_vulkan: Device memory allocation of size " << size << " failed." << std::endl;
748745
std::cerr << "ggml_vulkan: " << e.what() << std::endl;

0 commit comments

Comments
 (0)