From 8cbad2b25557a72216c83f0a45b40e3756ccb727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Jaro=C5=A1=C4=8Diak?= Date: Sat, 25 Nov 2023 17:26:35 -0500 Subject: [PATCH] Update vast-autogpu.sh --- vast-test-auto-gpu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vast-test-auto-gpu.sh b/vast-test-auto-gpu.sh index 3da862e..c8fe35d 100644 --- a/vast-test-auto-gpu.sh +++ b/vast-test-auto-gpu.sh @@ -39,8 +39,8 @@ echo "STEP 10 of 10: Starting Miner & GPU" # Start the Python miner sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 & -# Detect the number of GPUs (assuming GPUs are either NVIDIA, AMD, or Intel) -num_gpus=$(lspci | grep -E 'VGA|3D' | wc -l) +# Detect the number of GPUs +num_gpus=$(lspci | grep -i nvidia | wc -l) # Start a miner for each GPU for gpu_id in $(seq 0 $((num_gpus - 1)))