Skip to content

Commit 23686f1

Browse files
committed
use LOG_WARN to replace std::cerr
1 parent 759e37b commit 23686f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9262,8 +9262,7 @@ static ggml_backend_buffer_t ggml_backend_vk_host_buffer_type_alloc_buffer(ggml_
92629262
try {
92639263
ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
92649264
} catch (vk::SystemError& e) {
9265-
std::cerr << "ggml_vulkan: Failed to allocate pinned memory." << std::endl;
9266-
std::cerr << "ggml_vulkan: " << e.what() << std::endl;
9265+
GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
92679266
// fallback to cpu buffer
92689267
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
92699268
}

0 commit comments

Comments
 (0)