Skip to content

Commit 22cadc1

Browse files
authored
llama: only use one iGPU device by default (ggml-org#23897)
1 parent d749821 commit 22cadc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/llama.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ static bool llama_prepare_model_devices(const llama_model_params & params, llama
225225
}
226226

227227
case GGML_BACKEND_DEVICE_TYPE_IGPU:
228-
igpus.push_back({false, dev});
228+
if (igpus.empty()) {
229+
igpus.push_back({false, dev});
230+
}
229231
break;
230232
case GGML_BACKEND_DEVICE_TYPE_META:
231233
GGML_ABORT("fatal error");

0 commit comments

Comments
 (0)