Skip to content

Commit 7fd91a9

Browse files
committed
opt
1 parent eab4c5f commit 7fd91a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hive/optimus_price.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
CARDS_NUM=`nvidia-smi -L | grep UUID | wc -l`
4+
5+
mv /etc/sonm/optimus-default.yaml /etc/sonm/optimus-backup.yaml
6+
7+
echo "sed 's/min_price: 0.01/min_price: `bc -l <<< "scale=2; $CARDS_NUM*$1"`/g' /etc/sonm/optimus-backup.yaml > /etc/sonm/optimus-default.yaml" | bash

0 commit comments

Comments
 (0)