Skip to content

Commit 2d3c3ed

Browse files
committed
fix a missing python module issue
Signed-off-by: Tsai, Louie <louie.tsai@intel.com>
1 parent d33e81d commit 2d3c3ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.buildkite/nightly-benchmarks/scripts/run-performance-benchmarks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ check_gpus() {
3333

3434
check_cpus() {
3535
# check the number of CPUs and NUMA Node and GPU type.
36-
declare -g numa_count=$(python3 -c "from numa import info;numa_size = info.get_num_configured_nodes(); print(numa_size)")
36+
last_numa_index=$(cat /sys/devices/system/node/online | cut -d'-' -f2)
37+
declare -g numa_count=$((last_numa_index+1))
3738
if [[ $numa_count -gt 0 ]]; then
3839
echo "NUMA found."
3940
echo $numa_count

0 commit comments

Comments
 (0)