mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-27 08:21:30 +00:00
rpc : fix regression when --device is used (#15981)
Fix regression introduced with commit 50f4281a6
This commit is contained in:
committed by
GitHub
parent
9ecb884346
commit
918b26f197
@@ -227,7 +227,9 @@ static ggml_backend_t create_backend(const rpc_server_params & params) {
|
||||
}
|
||||
}
|
||||
|
||||
backend = ggml_backend_init_best();
|
||||
if (!backend) {
|
||||
backend = ggml_backend_init_best();
|
||||
}
|
||||
|
||||
if (backend) {
|
||||
fprintf(stderr, "%s: using %s backend\n", __func__, ggml_backend_name(backend));
|
||||
|
||||
Reference in New Issue
Block a user