Skip to content

Commit

Permalink
Another multi-gpu bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nan0s7 committed Nov 25, 2019
1 parent 9b7a6e6 commit 787a5cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions temp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,16 @@ if [ -z "$num_fans" ]; then
prf "No Fans detected"; exit 1
elif [ "${#num_fans}" -gt "2" ]; then
num_fans="${num_fans%* Fans on*}"
else
prf "Number of Fans detected: $num_fans"
fi
prf "Number of Fans detected: $num_fans"
num_gpus=$(get_query "gpus"); num_gpus="${num_gpus%* GPU on*}"
if [ -z "$num_gpus" ]; then
prf "No GPUs detected"; exit 1
elif [ "${#num_gpus}" -gt "2" ]; then
num_gpus="${num_gpus%* GPUs on*}"
else
num_gpus_loop="$((num_gpus-1))"; num_fans_loop="$((num_fans-1))"
prf "Number of GPUs detected: $num_gpus"
fi
prf "Number of GPUs detected: $num_gpus"

i=0
while [ "$i" -lt "$num_fans_loop" ]; do
Expand Down

0 comments on commit 787a5cf

Please sign in to comment.