Unverified Commit 94f87f96 authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

[workflow] fixed gpu memory check condition (#2659)

parent a255a38f
...@@ -23,7 +23,7 @@ jobs: ...@@ -23,7 +23,7 @@ jobs:
for i in $(seq 0 7); for i in $(seq 0 7);
do 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" -le "10000" ] && avai=false [ "$gpu_used" -gt "10000" ] && avai=false
done done
echo "GPU is available: $avai" echo "GPU is available: $avai"
......
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