".github/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "19e1a5cf16ead982eb8818cd69e41b06a5d23b20"
Unverified Commit 04244aaa authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

[workflow] fixed incomplete bash command (#5272)

parent ef4f0ee8
...@@ -23,6 +23,7 @@ jobs: ...@@ -23,6 +23,7 @@ jobs:
ngpu=$(nvidia-smi --query-gpu=name --format=csv,noheader | wc -l) ngpu=$(nvidia-smi --query-gpu=name --format=csv,noheader | wc -l)
endIndex=$(($ngpu-1)) endIndex=$(($ngpu-1))
for i in $(seq 0 $endIndex); for i in $(seq 0 $endIndex);
do
gpu_used=$(nvidia-smi -i $i --query-gpu=memory.used --format=csv,noheader,nounits) gpu_used=$(nvidia-smi -i $i --query-gpu=memory.used --format=csv,noheader,nounits)
[ "$gpu_used" -gt "2000" ] && avai=false [ "$gpu_used" -gt "2000" ] && avai=false
done done
......
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