Update vast-autogpu.sh

This commit is contained in:
Jozef Jaroščiak 2023-11-25 17:26:35 -05:00 committed by GitHub
parent fa18133ba2
commit 8cbad2b255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,8 +39,8 @@ echo "STEP 10 of 10: Starting Miner & GPU"
# Start the Python miner # Start the Python miner
sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 & sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 &
# Detect the number of GPUs (assuming GPUs are either NVIDIA, AMD, or Intel) # Detect the number of GPUs
num_gpus=$(lspci | grep -E 'VGA|3D' | wc -l) num_gpus=$(lspci | grep -i nvidia | wc -l)
# Start a miner for each GPU # Start a miner for each GPU
for gpu_id in $(seq 0 $((num_gpus - 1))) for gpu_id in $(seq 0 $((num_gpus - 1)))