fix: refuse a lopsided NUMA split and accept only 1/test for STRATA_NUMA_SPLIT
This commit is contained in:
1 parent
8d29804204
commit
2496795bd9
5 files changed
+58
-22
No files matched your search
@@ -5824,6 +5824,9 @@ int main(int argc, char** argv) {
|
||||
if (pool.plan_limit()[0] != '\0') // the default count: what it was bounded by (a configured count is never changed)
|
||||
std::fprintf(stderr, "strata generate: CPU pool: %d workers by default (%d physical cores, %d logical processors; bounded by %s)\n",
|
||||
pool.workers(), pool.plan_cores(), pool.plan_logical(), pool.plan_limit());
|
||||
if (srcp == &arena_src && strata::kernels::cpu::active_numa_split().on && !strata::kernels::cpu::active_numa_split().test)
|
||||
std::fprintf(stderr, "strata generate: NUMA split on, but this model's experts come from the arena path: memory is "
|
||||
"not placed per node (known limitation)\n");
|
||||
if (pool.is_hybrid() && pool.affinity() != strata::kernels::cpu::PoolAffinity::All) {
|
||||
const char* aff_str = pool.affinity() == strata::kernels::cpu::PoolAffinity::PCores ? "p-cores" :
|
||||
pool.affinity() == strata::kernels::cpu::PoolAffinity::All ? "all" : "auto";
|
||||
|
||||
Reference in new issue
Block a user