-
Notifications
You must be signed in to change notification settings - Fork 320
Molly/enable xpu ci #2814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Molly/enable xpu ci #2814
Conversation
This reverts commit a736c41.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2814
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
push: | ||
branches: | ||
- main | ||
- 'gh/**' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the gh/**
- name: Clean all stopped docker containers | ||
if: always() | ||
shell: bash | ||
run: | | ||
# Prune all stopped containers. | ||
# If other runner is pruning on this node, will skip. | ||
nprune=$(ps -ef | grep -c "docker container prune") | ||
if [[ $nprune -eq 1 ]]; then | ||
docker container prune -f | ||
fi | ||
|
||
- name: Runner health check GPU count | ||
if: always() | ||
shell: bash | ||
run: | | ||
ngpu=$(timeout 30 clinfo -l | grep -c -E 'Device' || true) | ||
msg="Please file an issue on pytorch/ao 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" | ||
echo "$msg" | ||
exit 1 | ||
fi | ||
|
||
- name: Use following to pull public copy of the image | ||
id: print-ghcr-mirror | ||
shell: bash | ||
run: | | ||
echo "docker pull ${DOCKER_IMAGE}" | ||
docker pull ${DOCKER_IMAGE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all those steps we also need in here https://github.com/pytorch/pytorch/blob/main/.github/workflows/_xpu-test.yml#L79-L114
if-no-files-found: ignore | ||
path: ./**/core.[1-9]* | ||
|
||
- name: Teardown XPU |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can reuse the action in pytorch directly
Co-authored-by: Wang, Chuanqi <chuanqi.wang@intel.com>
Co-authored-by: Wang, Chuanqi <chuanqi.wang@intel.com>
Enabling CI testing for the torchao project on the Intel XPU (GPU) platform to ensure functional correctness, performance consistency, and long-term compatibility as both torchao and XPU support evolve.