[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 -2
View File
@@ -46,12 +46,12 @@ class OMPProcessManager:
self.reserve_cpu_num = (
self.local_world_size
if current_platform.get_cpu_architecture()
in (CpuArchEnum.ARM, CpuArchEnum.RISCV)
in (CpuArchEnum.X86, CpuArchEnum.ARM, CpuArchEnum.RISCV)
else 1
)
# reserve at one more core for nixl_connector under p/d case
if config.kv_transfer_config:
self.reserve_cpu_num += 1
self.reserve_cpu_num += self.local_world_size
if envs.VLLM_CPU_NUM_OF_RESERVED_CPU is not None:
if self.reserve_cpu_num > envs.VLLM_CPU_NUM_OF_RESERVED_CPU: