[CPU] Align scheduler and NIXL CPU affinity per local rank (#53636)

Signed-off-by: Li, Tianmu <tianmu.li@intel.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Li, Jiang <jiang1.li@intel.com>
This commit is contained in:
Tianmu Li
2026-09-17 16:43:08 +08:00
committed by GitHub
co-authored by OpenAI Codex Li, Jiang <jiang1.li@intel.com>
parent 88afb77700
commit 23cd0346ce
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -515,6 +515,7 @@ class CpuPlatform(Platform):
if not (os.path.exists(SYS_NODE) and os.path.exists(SYS_CPU)):
return []
use_highest_sibling = cls.get_cpu_architecture() == CpuArchEnum.X86
core_rsv_for_kv = []
for node in os.listdir(SYS_NODE):
if not node.startswith("node") or not node[4:].isdigit():
@@ -547,7 +548,7 @@ class CpuPlatform(Platform):
else:
siblings = [cpu_id]
phys = min(siblings)
phys = max(siblings) if use_highest_sibling else min(siblings)
if phys not in seen_phys:
seen_phys.add(phys)