@damNmad:
I found a small bug in your telegram configuration. Command which use for getting GPUs count is invalid when rig have installed over 9 cards...
Your command:
GPU_COUNT=$(nvidia-smi -L | tail -n 1| cut -c 5 |awk '{ SUM += $1+1} ; { print SUM }')
and result:
m1@rig-bafomet:~$ nvidia-smi -L | tail -n 1| cut -c 5 |awk '{ SUM += $1+1} ; { print SUM }'
2
There isn't any reason, why use
awk. Easier way is use
wc only.
So, fix:
GPU_COUNT=$(nvidia-smi -L | wc -l')
and result:
m1@rig-bafomet:~$ nvidia-smi -L | wc -l
11