"...git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "bf7e3c51aeccf836039454ab485e1337af9171ea"
Unverified Commit a023edfa authored by Galigator's avatar Galigator Committed by GitHub
Browse files

[bugfix] Use only onlines CPUs in lscpu (#40161)


Signed-off-by: default avatarkse <kevin.sejourne@cloud-temple.com>
Co-authored-by: default avatarkse <kevin.sejourne@cloud-temple.com>
parent b82fc136
...@@ -155,7 +155,7 @@ def _get_cpu_list() -> list[LogicalCPUInfo]: ...@@ -155,7 +155,7 @@ def _get_cpu_list() -> list[LogicalCPUInfo]:
return [LogicalCPUInfo(i, i, 0) for i in range(cpu_count)] return [LogicalCPUInfo(i, i, 0) for i in range(cpu_count)]
lscpu_output = subprocess.check_output( lscpu_output = subprocess.check_output(
"lscpu -J -e=CPU,CORE,NODE", shell=True, text=True "lscpu --json --extended=CPU,CORE,NODE --online", shell=True, text=True
) )
# For platform without NUMA, replace '-' to '0' # For platform without NUMA, replace '-' to '0'
......
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