Skip to content

Commit 05f406e

Browse files
authored
Update clore.sh
1 parent 583ac48 commit 05f406e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

clore.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,19 @@ make install
4141
pip uninstall fsspec -y
4242

4343
pip install 'fsspec==2023.10.0'
44+
45+
46+
# Prompt the user for the number of miners
47+
read -p "Enter the number of miners (maximum 10): " num_miners
48+
49+
if [[ $num_miners -gt 10 ]]; then
50+
echo "Maximum number of miners allowed is 10. Setting the number of miners to 10."
51+
num_miners=10
52+
fi
53+
54+
# Activate the miners
55+
for ((i=1; i<=$num_miners; i++)); do
56+
read -p "Enter the address for miner $i: " addr
57+
tmux new-session -d -s Nimble$i "cd /root/nimble/nimble-miner-public/ && source ./nimenv_localminers/bin/activate && export CUDA_VISIBLE_DEVICES=$((i-1)) && make run addr=$addr"
58+
tmux detach -s Nimble$i
59+
done

0 commit comments

Comments
 (0)