Capture xpu-smi output before grepping to avoid SIGPIPE failures under set -o pipefail when grep -q exits early.