refactor: route cpu placement through backend specs (#1654)

This commit is contained in:
leejet authored and GitHub committed 2026-06-14 15:52:24 +08:00
1 parent 749186c0eb
commit 5db680c2c7
13 files changed
+120 -152

No files matched your search

+3
View File
@@ -148,6 +148,8 @@ struct SDContextParams {
bool stream_layers = false;
std::string backend;
std::string params_backend;
std::string effective_backend;
std::string effective_params_backend;
bool enable_mmap = false;
bool control_net_cpu = false;
bool clip_on_cpu = false;
@@ -175,6 +177,7 @@ struct SDContextParams {
float flow_shift = INFINITY;
ArgOptions get_options();
void build_embedding_map();
void prepare_backend_assignments();
bool resolve(SDMode mode);
bool validate(SDMode mode);
bool resolve_and_validate(SDMode mode);