llama : allow using iGPUs with --device (#15951)

* llama : allow using iGPUs with --device

* mtmd : allow iGPU

* rpc-server : allow iGPU
This commit is contained in:
Diego Devesa 2025-09-13 07:49:49 -07:00 committed by GitHub
parent 55758b00ca
commit 50f4281a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 24 deletions

View file

@ -406,6 +406,7 @@ struct clip_ctx {
}
if (!backend) {
backend = ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_GPU, nullptr);
backend = backend ? backend : ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_IGPU, nullptr);
}
}