We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::cerr
1 parent 759e37b commit 23686f1Copy full SHA for 23686f1
ggml/src/ggml-vulkan/ggml-vulkan.cpp
@@ -9262,8 +9262,7 @@ static ggml_backend_buffer_t ggml_backend_vk_host_buffer_type_alloc_buffer(ggml_
9262
try {
9263
ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
9264
} 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;
+ GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
9267
// fallback to cpu buffer
9268
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
9269
}
0 commit comments