Unverified Commit 70e1acef authored by SameerAsal's avatar SameerAsal Committed by GitHub
Browse files

[BugFix] Fix NUMA node validation in CPU platform (#31520)


Signed-off-by: default avatarSameerAsal <SameerAsal@users.noreply.github.com>
Co-authored-by: default avatarSameerAsal <SameerAsal@users.noreply.github.com>
parent 84f6cd74
......@@ -390,7 +390,7 @@ class CpuPlatform(Platform):
if env_key in os.environ and os.environ[env_key] != "":
visible_nodes = [int(s) for s in os.environ[env_key].split(",")]
allowed_numa_nodes_list = [
x for x in visible_nodes if x in allowed_cpu_id_list
x for x in sorted(list(set(visible_nodes))) if x in allowed_numa_nodes
]
return allowed_numa_nodes_list, logical_cpu_list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment