Skip to content

Commit df2f47c

Browse files
committed
rpc-server : allow iGPU
1 parent c8014a9 commit df2f47c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tools/rpc/rpc-server.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,7 @@ static ggml_backend_t create_backend(const rpc_server_params & params) {
227227
}
228228
}
229229

230-
// try to initialize a GPU backend first
231-
if (!backend) {
232-
backend = ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_GPU, nullptr);
233-
}
234-
235-
// if there aren't GPU backends fallback to CPU backend
236-
if (!backend) {
237-
backend = ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_CPU, nullptr);
238-
}
230+
backend = ggml_backend_init_best();
239231

240232
if (backend) {
241233
fprintf(stderr, "%s: using %s backend\n", __func__, ggml_backend_name(backend));

0 commit comments

Comments
 (0)