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 3079e9a commit a127ff1Copy full SHA for a127ff1
ggml/src/ggml-vulkan/ggml-vulkan.cpp
@@ -9264,8 +9264,7 @@ static ggml_backend_buffer_t ggml_backend_vk_host_buffer_type_alloc_buffer(ggml_
9264
try {
9265
ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
9266
} 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;
+ GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
9269
// fallback to cpu buffer
9270
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
9271
}
0 commit comments