Skip to content

Commit

Permalink
[workflow] fixed gpu memory check condition (#2659)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee committed Feb 10, 2023
1 parent a255a38 commit 94f87f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_on_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 94f87f9

Please sign in to comment.