Skip to content

Commit a693dce

Browse files
committed
Only get the name of the first GPU
1 parent ecb9fd2 commit a693dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm-benchmarks/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export HEAD_BRANCH=main
107107
export HEAD_SHA=$(git rev-parse --verify HEAD)
108108

109109
if command -v nvidia-smi; then
110-
declare -g GPU_DEVICE=$(nvidia-smi --query-gpu=name --format=csv,noheader | awk '{print $2}')
110+
declare -g GPU_DEVICE=$(nvidia-smi -i 0 --query-gpu=name --format=csv,noheader | awk '{print $2}' | head -n1)
111111
elif command -v amd-smi; then
112112
declare -g GPU_DEVICE=$(amd-smi static -g 0 -a | grep 'MARKET_NAME' | awk '{print $2}')
113113
fi

0 commit comments

Comments
 (0)