Skip to content

[RELEASE TEST] Remove unnecessary Torch dependency from ExecuTorch ops build#4199

Draft
manuelcandales wants to merge 1 commit intorelease/0.17.0from
manuel/remove-find-package-torch
Draft

[RELEASE TEST] Remove unnecessary Torch dependency from ExecuTorch ops build#4199
manuelcandales wants to merge 1 commit intorelease/0.17.0from
manuel/remove-find-package-torch

Conversation

@manuelcandales
Copy link
Copy Markdown
Contributor

The ExecuTorch ops target defines TORCHAO_SHARED_KERNELS_BUILD_EXECUTORCH=1, which means shared kernel headers use ExecuTorch includes, not Torch includes. The find_package(Torch) and TORCH_INCLUDE_DIRS were therefore unnecessary and caused CMake configure failures in standalone ExecuTorch builds where PyTorch is not discoverable via find_package.

The ExecuTorch ops target defines TORCHAO_SHARED_KERNELS_BUILD_EXECUTORCH=1,
which means shared kernel headers use ExecuTorch includes, not Torch includes.
The find_package(Torch) and TORCH_INCLUDE_DIRS were therefore unnecessary and
caused CMake configure failures in standalone ExecuTorch builds where PyTorch
is not discoverable via find_package.
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 29, 2026

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Cancelled Job

As of commit 8384d26 with merge base 02105d4 (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 29, 2026
@manuelcandales manuelcandales added the module: not user facing Use this tag if you don't want this PR to show up in release notes label Mar 29, 2026
@manuelcandales manuelcandales marked this pull request as ready for review March 29, 2026 15:40
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 29, 2026

Warning: Unknown label ciflow/binaries/all.
Currently recognized labels are

  • ciflow/benchmark
  • ciflow/tutorials
  • ciflow/rocm
  • ciflow/4xh100
  • ciflow/xpu

Please add the new label to .github/pytorch-probot.yml

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 29, 2026

Warning: Unknown label ciflow/rocm-mi300.
Currently recognized labels are

  • ciflow/benchmark
  • ciflow/tutorials
  • ciflow/rocm
  • ciflow/4xh100
  • ciflow/xpu

Please add the new label to .github/pytorch-probot.yml

@manuelcandales manuelcandales marked this pull request as draft March 29, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/benchmark ciflow/binaries/all ciflow/rocm ciflow/rocm-mi300 ciflow/tutorials ciflow/xpu label used to trigger xpu CI jobs ciflow/4xh100 CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: not user facing Use this tag if you don't want this PR to show up in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant