mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-30 23:06:01 +00:00
[workflow] fixed gpu memory check condition (#2659)
This commit is contained in:
parent
a255a38f7f
commit
94f87f9651
2
.github/workflows/build_on_schedule.yml
vendored
2
.github/workflows/build_on_schedule.yml
vendored
@ -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
Block a user