stable-diffusion.cpp/examples/common
Claude 25a2fa9df3
feat(backend): choose how the layer split fills the devices
Upstream #2309 made the layer split size its ranges in proportion to the
device capacities, while the fork's multi-GPU planner still estimated
the earlier fill-first placement. --layer-split-fill (context option
layer_split_fill) now offers both, and the split and the planner share
one implementation in src/core/layer_split_partition.*:

- proportional: every device takes the same fraction of its capacity,
  so each keeps room for computing (upstream's behaviour);
- fill-first: the first device takes as many layers as it can, the next
  ones the rest (the fork's earlier behaviour);
- auto (default): when auto-fit plans a split it tries both fills and
  keeps the one that leaves more modules resident on the GPUs,
  proportional on a tie, and the split then fills the devices that way;
  a split given with --backend is proportional over discrete GPUs and
  fill-first as soon as an integrated GPU or the CPU takes part.

The log names the fill of each split, docs/guides/backend.md describes
the option, test/layer_split_fill_test.cpp covers the three modes and
test/backend_fit_plan_test.cpp the planner's choice.

Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-11-24 18:28:49 +01:00
..
common.cpp feat(backend): choose how the layer split fills the devices 2026-11-24 18:28:49 +01:00
common.h feat(backend): choose how the layer split fills the devices 2026-11-24 18:28:49 +01:00
generation_metadata.cpp fix: clean LoRA multiplier and prompt spacing in image metadata (#2283) 2026-11-08 15:23:11 +08:00
generation_metadata.h feat: return generation metadata with core results (#2206) 2026-10-25 03:18:03 +08:00
log.cpp refactor: escape newlines in prompt logs and clarify source separators (#2106) 2026-10-06 19:51:12 +08:00
log.h feat: add verbose logging and log-level selection (#1941) 2026-09-06 23:14:03 +08:00
media_io.cpp refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
media_io.h refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
media_metadata.cpp feat: return generation metadata with core results (#2206) 2026-10-25 03:18:03 +08:00
media_metadata.h feat: return generation metadata with core results (#2206) 2026-10-25 03:18:03 +08:00
options.h refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
profile.cpp Merge leejet/stable-diffusion.cpp 532d2c1 into fork-pull (sync 3/4) 2026-11-24 13:01:39 +01:00
profile.h feat(server): keep compute on the GPUs and try other GPUs before the CPU 2026-11-05 17:44:47 +01:00
resource_owners.hpp refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00