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

Signed-off-by: SameerAsal <SameerAsal@users.noreply.github.com>
Co-authored-by: SameerAsal <SameerAsal@users.noreply.github.com>
This commit is contained in:
SameerAsal
2025-12-30 20:06:49 -08:00
committed by GitHub
parent 84f6cd741b
commit 70e1acefcd

View File

@@ -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