mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 01:41:37 +00:00
remove some unhelpful warnings
This commit is contained in:
parent
dbd8c680ba
commit
b061024812
1 changed files with 6 additions and 6 deletions
|
|
@ -934,22 +934,22 @@ bool llama_model_loader::load_all_data(
|
|||
auto * buft = ggml_backend_buffer_get_type(buf);
|
||||
auto * dev = ggml_backend_buft_get_device(buft);
|
||||
if (!dev) {
|
||||
LLAMA_LOG_DEBUG("%s: no device found for buffer type %s for async uploads\n", func,
|
||||
ggml_backend_buft_name(buft));
|
||||
// LLAMA_LOG_DEBUG("%s: no device found for buffer type %s for async uploads\n", func,
|
||||
// ggml_backend_buft_name(buft));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (buft != ggml_backend_dev_buffer_type(dev)) {
|
||||
LLAMA_LOG_DEBUG("%s: buffer type %s is not the default buffer type for device %s for async uploads\n", func,
|
||||
ggml_backend_buft_name(buft), ggml_backend_dev_name(dev));
|
||||
// LLAMA_LOG_DEBUG("%s: buffer type %s is not the default buffer type for device %s for async uploads\n", func,
|
||||
// ggml_backend_buft_name(buft), ggml_backend_dev_name(dev));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ggml_backend_dev_props props;
|
||||
ggml_backend_dev_get_props(dev, &props);
|
||||
if (!props.caps.async || !props.caps.host_buffer || !props.caps.events) {
|
||||
LLAMA_LOG_DEBUG("%s: device %s does not support async, host buffers or events\n", func,
|
||||
ggml_backend_dev_name(dev));
|
||||
// LLAMA_LOG_DEBUG("%s: device %s does not support async, host buffers or events\n", func,
|
||||
// ggml_backend_dev_name(dev));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue