mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 19:16:33 +00:00
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 |
||
|---|---|---|
| .. | ||
| common.cpp | ||
| common.h | ||
| generation_metadata.cpp | ||
| generation_metadata.h | ||
| log.cpp | ||
| log.h | ||
| media_io.cpp | ||
| media_io.h | ||
| media_metadata.cpp | ||
| media_metadata.h | ||
| options.h | ||
| profile.cpp | ||
| profile.h | ||
| resource_owners.hpp | ||