Browse Source

[workflow] fixed incomplete bash command (#5272)

pull/5275/head
Frank Lee 10 months ago committed by GitHub
parent
commit
04244aaaf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/workflows/build_on_schedule.yml

1
.github/workflows/build_on_schedule.yml

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

Loading…
Cancel
Save