You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Motivation
This PR addresses a code generation issue related to XPU. Currently,
there are two separate codegen paths for XPU:
1. **Stock PyTorch** – Generates code for oneDNN ops.
2. **torch-xpu-ops** – Generates code for SYCL kernel ops.
The corresponding build directories are:
1. `build/aten/src/ATen` (for stock PyTorch)
2. `build/xpu/ATen` (for torch-xpu-ops)
However, in the torch-xpu-ops codegen, we mistakenly omitted installing
XPU op headers from `build/xpu/ATen/ops` to `build/aten/src/ATen/ops`.
This PR fixes the issue and also removes some unnecessary code for
better maintainability.
# Solution
We copy the codegen from torch-xpu-ops to stock PyTorch
# Additional Context
Fixpytorch/pytorch#145902
0 commit comments