Repository navigation
fix: include integrated GPUs in automatic memory planning - #2228
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
GPU device type filter src/core/backend_fit.cpp |
enumerate_gpu_devices accepts integrated and discrete GPU device types. The existing condition for other device types remains unchanged. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Possibly related issues
- Issue 2192 reports that auto-fit found no GPU devices for an integrated Radeon GPU on Vulkan. This change includes integrated GPUs in device enumeration.
Suggested reviewers: leejet
Merge Risk: 
Minimal · up to 791b8
-
The change is limited to including integrated GPUs in automatic enumeration, with existing exclusions preserved.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title names the main change: integrated GPUs are now included in automatic memory planning. It uses the conventional fix: prefix and stays within one line. It matches the raw summary, which describes the enumerate_gpu_devices filter change in backend_fit.cpp.
Full details: Description check
-
Explanation
The description follows the template. It has a Summary that states what changed and why. It has a Related Issue / Discussion section that links
#2101and explains how the reproduction differs. It has an Additional Information section with build, CLI, and harness verification notes. It has a checked Checklist item. The template comment asks for an explicit link to related issues, and the PR links one. The description does not add a separate section heading for every template item, but all required content is present.
-
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
Thanks. |
Summary
Include integrated GPU devices when automatic memory planning enumerates compute GPUs. The current filter excludes
GGML_BACKEND_DEVICE_TYPE_IGPUunless a backend is explicitly specified, so an integrated-only system skips the planner even though the default Vulkan execution backend works.CPU exclusion, explicit accelerator selection and memory-budget calculation remain unchanged.
Related Issue / Discussion
Related to #2101. That report's CPU-fallback interpretation does not match the reproduction here: Vulkan runs, but the auto-fit plan is missing without an explicit backend.
Additional Information
--backend, including the requested 4 GiB budget, and generated an image successfully. Explicit--backend vulkan0also passed.Checklist
Summary by CodeRabbit