]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
use LOG_WARN to replace `std::cerr` (llama/13657)
authorJudd <redacted>
Fri, 23 May 2025 04:33:08 +0000 (12:33 +0800)
committerGeorgi Gerganov <redacted>
Tue, 27 May 2025 15:03:00 +0000 (18:03 +0300)
ggml/src/ggml-vulkan/ggml-vulkan.cpp

index c160a9984075fffc782ce6bdbd591a7e451ba20d..453e000627363e7509de70acdfa4ae69937db88d 100644 (file)
@@ -9264,8 +9264,7 @@ static ggml_backend_buffer_t ggml_backend_vk_host_buffer_type_alloc_buffer(ggml_
     try {
         ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
     } catch (vk::SystemError& e) {
-        std::cerr << "ggml_vulkan: Failed to allocate pinned memory." << std::endl;
-        std::cerr << "ggml_vulkan: " << e.what() << std::endl;
+        GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
         // fallback to cpu buffer
         return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
     }