Skip to content

Add XPU to is_compile_supported to support roi_align op in torchvision#147541

Closed
frost-intel wants to merge 1 commit intopytorch:mainfrom
frost-intel:xpu_compile_supported
Closed

Add XPU to is_compile_supported to support roi_align op in torchvision#147541
frost-intel wants to merge 1 commit intopytorch:mainfrom
frost-intel:xpu_compile_supported

Conversation

@frost-intel
Copy link
Copy Markdown
Collaborator

@frost-intel frost-intel commented Feb 20, 2025

Part of the required fix for intel/torch-xpu-ops#1264.

To support roi_align, torchvision uses is_compile_supported in torch/_dynamo/utils.py to compile a non-deterministic version of the op for backwards passes. This PR adds XPU device to the supported compile devices.

The is_compile_supported() util function has extremely limited usage, only being used in torchvision.ops.roi_align and torch.utils._content_store.has_storage().

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Feb 20, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/147541

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit f35eb8d with merge base 303ad19 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@frost-intel frost-intel self-assigned this Feb 20, 2025
@frost-intel frost-intel added the topic: not user facing topic category label Feb 20, 2025
@frost-intel frost-intel changed the title Add XPU to is_compile_supported to support roi_op in torchvision Add XPU to is_compile_supported to support roi_align op in torchvision Feb 20, 2025
@frost-intel frost-intel requested a review from guangyey February 20, 2025 21:28
Copy link
Copy Markdown
Collaborator

@guangyey guangyey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@guangyey guangyey added the release notes: xpu release notes category label Feb 21, 2025
@frost-intel frost-intel marked this pull request as ready for review February 21, 2025 16:34
@frost-intel
Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 21, 2025
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge failed

Reason: Approvers from one of the following sets are needed:

  • superuser (pytorch/metamates)
  • Core Reviewers (mruberry, lezcano, Skylion007, ngimel, peterbell10, ...)
  • Core Maintainers (soumith, gchanan, ezyang, dzhulgakov, malfet, ...)
Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@guangyey
Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request Feb 24, 2025
…n (#147541)

Summary:
Part of the required fix for intel/torch-xpu-ops#1264.

To support `roi_align`, torchvision uses `is_compile_supported` in `torch/_dynamo/utils.py` to compile a non-deterministic version of the op for backwards passes. This PR adds XPU device to the supported compile devices.

The `is_compile_supported()` util function has extremely limited usage, only being used in `torchvision.ops.roi_align` and `torch.utils._content_store.has_storage()`.

X-link: pytorch/pytorch#147541
Approved by: https://github.com/guangyey, https://github.com/jansel

Reviewed By: jeanschmidt

Differential Revision: D70075274

fbshipit-source-id: 8cdb21eaa08243a7442383950f96c3351f5f52c5

Co-authored-by: lei,zhenyuan <zhenyuan.lei@intel.com>
benjaminglass1 added a commit that referenced this pull request Feb 24, 2025
See https://github.com/pytorch/pytorch/actions/runs/13508573465/job/37745227468 for an example error. This is triggering after the merge of #147541, which enabled Dynamo compilation on XPU.
@EikanWang
Copy link
Copy Markdown
Collaborator

@frost-intel , @guangyey , this PR needs to be labeled by ciflow/xpu.

benjaminglass1 added a commit that referenced this pull request Feb 26, 2025
See https://github.com/pytorch/pytorch/actions/runs/13508573465/job/37745227468 for an example error. This is triggering after the merge of #147541, which enabled Dynamo compilation on XPU.
pytorchmergebot pushed a commit that referenced this pull request Feb 26, 2025
See https://github.com/pytorch/pytorch/actions/runs/13508573465/job/37745227468 for an example error. This is triggering after the merge of #147541, which enabled Dynamo compilation on XPU.

Pull Request resolved: #147785
Approved by: https://github.com/jansel
aditew01 pushed a commit that referenced this pull request Feb 28, 2025
#147541)

Part of the required fix for intel/torch-xpu-ops#1264.

To support `roi_align`, torchvision uses `is_compile_supported` in `torch/_dynamo/utils.py` to compile a non-deterministic version of the op for backwards passes. This PR adds XPU device to the supported compile devices.

The `is_compile_supported()` util function has extremely limited usage, only being used in `torchvision.ops.roi_align` and `torch.utils._content_store.has_storage()`.

Pull Request resolved: #147541
Approved by: https://github.com/guangyey, https://github.com/jansel

Co-authored-by: lei,zhenyuan <zhenyuan.lei@intel.com>
aditew01 pushed a commit that referenced this pull request Feb 28, 2025
See https://github.com/pytorch/pytorch/actions/runs/13508573465/job/37745227468 for an example error. This is triggering after the merge of #147541, which enabled Dynamo compilation on XPU.

Pull Request resolved: #147785
Approved by: https://github.com/jansel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants