[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:
co-authored by
Li, Jiang <jiang1.li@intel.com>
parent
8c5dafcd09
commit
9e57de7197
@@ -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
|
||||
), (
|
||||
|
||||
Reference in New Issue
Block a user