[CPU] Create Proper Numa topology for s390x (#40714)

Signed-off-by: Rehan Khan <Rehan.Khan7@ibm.com>
Co-authored-by: Li, Jiang <jiang1.li@intel.com>
This commit is contained in:
Rehan Khan
2026-07-13 12:58:43 +08:00
committed by GitHub
co-authored by Li, Jiang <jiang1.li@intel.com>
parent 8c5dafcd09
commit 9e57de7197
7 changed files with 84 additions and 105 deletions
+8
View File
@@ -204,6 +204,14 @@ class OMPProcessManager:
logical_cpu_list = cr_utils.get_allowed_cpu_list()
local_world_size = self.local_world_size
# On s390x, numa_node is remapped to book IDs (the best CPU
# partitioning level). Derive topology domains from the CPU list
# since they no longer correspond to physical memory nodes.
cpu_arch = current_platform.get_cpu_architecture()
if cpu_arch == CpuArchEnum.S390X:
allowed_numa_nodes = sorted(set(cpu.numa_node for cpu in logical_cpu_list))
assert (
len(allowed_numa_nodes) >= local_world_size or self.simulate_multi_node
), (