Update vast-autogpu.sh
This commit is contained in:
parent
fa18133ba2
commit
8cbad2b255
@ -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)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user