mirror of https://github.com/hpcaitech/ColossalAI
[workflow] fixed gpu memory check condition (#2659)
parent
a255a38f7f
commit
94f87f9651
|
@ -23,7 +23,7 @@ jobs:
|
|||
for i in $(seq 0 7);
|
||||
do
|
||||
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
|
||||
|
||||
echo "GPU is available: $avai"
|
||||
|
|
Loading…
Reference in New Issue