mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-04-25 09:12:10 +00:00
7 lines
168 B
Bash
7 lines
168 B
Bash
avai=true
|
|
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
|
|
done
|