#!/bin/bash
# smtest on 8 cards in parallel. Usage: ./smtest8.sh <seconds>   (run from the directory with the smtest binary)
cd "$(dirname "$0")" || exit 1
for i in 0 1 2 3 4 5 6 7; do ./smtest $i ${1:-60} > smtest-gpu$i.log 2>&1 & done; wait
cat smtest-gpu?.log
nvidia-smi --query-gpu=index,pci.bus_id,temperature.gpu,power.draw --format=csv,noheader
