diff --git a/.github/actions/setup-xpu/action.yml b/.github/actions/setup-xpu/action.yml index 5e37af2e50f..740492475d6 100644 --- a/.github/actions/setup-xpu/action.yml +++ b/.github/actions/setup-xpu/action.yml @@ -35,7 +35,7 @@ runs: if: always() shell: bash run: | - ngpu=$(timeout 30 xpu-smi discovery | grep -c -E 'Device Name') + ngpu=$(timeout 30 xpu-smi discovery | grep -c -E 'Device Name' || true) msg="Please file an issue on pytorch/pytorch reporting the faulty runner. Include a link to the runner logs so the runner can be identified" if [[ $ngpu -eq 0 ]]; then echo "Error: Failed to detect any GPUs on the runner"