fix: include integrated GPUs in automatic memory planning (#2228)

This commit is contained in:
project516 authored and GitHub committed 2026-10-28 01:28:11 +08:00
1 parent be486498ea
commit 2032526e8c
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ namespace sd::backend_fit {
for (size_t i = 0; i < ggml_backend_dev_count(); ++i) { for (size_t i = 0; i < ggml_backend_dev_count(); ++i) {
ggml_backend_dev_t dev = ggml_backend_dev_get(i); ggml_backend_dev_t dev = ggml_backend_dev_get(i);
const auto type = ggml_backend_dev_type(dev); const auto type = ggml_backend_dev_type(dev);
if (type != GGML_BACKEND_DEVICE_TYPE_GPU && if (type != GGML_BACKEND_DEVICE_TYPE_GPU && type != GGML_BACKEND_DEVICE_TYPE_IGPU &&
(!include_other_devices || type == GGML_BACKEND_DEVICE_TYPE_CPU)) { (!include_other_devices || type == GGML_BACKEND_DEVICE_TYPE_CPU)) {
continue; continue;
} }