Skip to content

xpu: fix AOT compilation in sycl cpp extension#156364

Closed
dvrogozh wants to merge 1 commit intopytorch:mainfrom
dvrogozh:extension
Closed

xpu: fix AOT compilation in sycl cpp extension#156364
dvrogozh wants to merge 1 commit intopytorch:mainfrom
dvrogozh:extension

Conversation

@dvrogozh
Copy link
Contributor

@dvrogozh dvrogozh commented Jun 18, 2025

Commit fixes AOT compilation in sycl cpp extension which got accidentally dropped on aca2c99 (fallback to JIT compilation had happened). Commit also fixes override logic for default sycl targets allowing flexibility to specify targets externally. Further, commit extends test coverage to cover such a case and fixes issue in the test where consequent tests executed same (first) compiled extension due to name conflicts.

Fixes: #156249
Fixes: aca2c99 ("xpu: get xpu arch flags at runtime in cpp_extensions (#152192)")

CC: @pengxin99, @guangyey

cc @gujinghui @EikanWang @fengyuan14 @guangyey

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 18, 2025

🔗 Helpful Links

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

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 33b9b51 with merge base 0b62465 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@dvrogozh
Copy link
Contributor Author

@pytorchbot label "release notes: xpu"

@pytorch-bot pytorch-bot bot added the release notes: xpu release notes category label Jun 18, 2025
@dvrogozh
Copy link
Contributor Author

@pytorchbot label "module: xpu"

@pytorch-bot pytorch-bot bot added the module: xpu Intel XPU related issues label Jun 18, 2025
Commit fixes AOT compilation in sycl cpp extension which got
accidentally dropped on aca2c99 (fallback to JIT compilation
had happened). Commit also fixes override logic for default sycl
targets allowing flexibility to specify targets externally. Further,
commit extends test coverage to cover such a case and fixes issue
in the test where consequent tests executed same (first) compiled
extension due to name conflicts.

Fixes: pytorch#156249
Fixes: aca2c99 ("xpu: get xpu arch flags at runtime in cpp_extensions (pytorch#152192)")
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Only did a cursory review, but looks fine.

@ezyang
Copy link
Contributor

ezyang commented Jun 19, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 19, 2025
@pytorchmergebot
Copy link
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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@dvrogozh
Copy link
Contributor Author

@ezyang, @guangyey : Please, add ciflow/xpu label to give XPI ci a run (I don't have these rights myself).

@ezyang ezyang added the ciflow/xpu Run XPU CI tasks label Jun 19, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 19, 2025

To add the ciflow label ciflow/xpu please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot bot removed the ciflow/xpu Run XPU CI tasks label Jun 19, 2025
@ezyang
Copy link
Contributor

ezyang commented Jun 19, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: xpu Intel XPU related issues open source release notes: xpu release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xpu: AOT compilation does not happen with sycl extension (JIT fallback happens)

5 participants