mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[CI] Fix XPU runner setup status issue (#155443)
Flow with PR #155194, fix the timeout exit code issue refer https://github.com/pytorch/pytorch/actions/runs/15526078422/job/43706927778?pr=154962#step:3:74 Pull Request resolved: https://github.com/pytorch/pytorch/pull/155443 Approved by: https://github.com/etaf, https://github.com/atalman, https://github.com/EikanWang
This commit is contained in:
committed by
PyTorch MergeBot
parent
5dfe1787b5
commit
9d2d227003
2
.github/actions/setup-xpu/action.yml
vendored
2
.github/actions/setup-xpu/action.yml
vendored
@ -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"
|
||||
|
Reference in New Issue
Block a user