8000 use LOG_WARN to replace `std::cerr` (#13657) · ggml-org/llama.cpp@a127ff1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a127ff1

Browse files
authored
use LOG_WARN to replace std::cerr (#13657)
1 parent 3079e9a commit a127ff1

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
@@ -9264,8 +9264,7 @@ static ggml_backend_buffer_t ggml_backend_vk_host_buffer_type_alloc_buffer(ggml_
92649264
try {
92659265
ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
92669266
} catch (vk::SystemError& e) {
9267-
std::cerr << "ggml_vulkan: Failed to allocate pinned memory." << std::endl;
9268-
std::cerr << "ggml_vulkan: " << e.what() << std::endl;
9267+
GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
92699268
// fallback to cpu buffer
92709269
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
92719270
}

0 commit comments

Comments
 (0)
0