Commit 2032526 for stable-diffusion.cpp
commit 2032526e8c106e63a132583b5c4f5b30341b5366
Author: project516 <138796702+Project516@users.noreply.github.com>
Date: Tue Oct 27 12:28:11 2026 -0500
fix: include integrated GPUs in automatic memory planning (#2228)
diff --git a/src/core/backend_fit.cpp b/src/core/backend_fit.cpp
index 91dfedb..c970d10 100644
--- a/src/core/backend_fit.cpp
+++ b/src/core/backend_fit.cpp
@@ -133,7 +133,7 @@ namespace sd::backend_fit {
for (size_t i = 0; i < ggml_backend_dev_count(); ++i) {
ggml_backend_dev_t dev = ggml_backend_dev_get(i);
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)) {
continue;
}