Spaces:
Sleeping
Sleeping
Judd
commited on
Commit
·
6975ec2
1
Parent(s):
b9bf6b6
use LOG_WARN to replace `std::cerr` (llama/13657)
Browse files
ggml/src/ggml-vulkan/ggml-vulkan.cpp
CHANGED
|
@@ -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 |
-
|
| 9268 |
-
std::cerr << "ggml_vulkan: " << e.what() << std::endl;
|
| 9269 |
// fallback to cpu buffer
|
| 9270 |
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
|
| 9271 |
}
|
|
|
|
| 9264 |
try {
|
| 9265 |
ptr = ggml_vk_host_malloc(vk_instance.devices[0], size);
|
| 9266 |
} catch (vk::SystemError& e) {
|
| 9267 |
+
GGML_LOG_WARN("ggml_vulkan: Failed to allocate pinned memory (%s)\n", e.what());
|
|
|
|
| 9268 |
// fallback to cpu buffer
|
| 9269 |
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
|
| 9270 |
}
|