Add XLAHooksInterface to bazel file (#166179)

Differential Revision: D85446553

Internal builds failing after https://github.com/pytorch/pytorch/pull/161369

```
buck-headers/ATen/Context.h:22:10: fatal error: 'ATen/detail/XLAHooksInterface.h' file not found
   22 | #include <ATen/detail/XLAHooksInterface.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

Changes similar to that PR also change the build_variables file, which I've done here.  I'm not sure why this wasn't caught by the bazel build we have?

Sanity checked that some of the previously failing builds pass after this change
Pull Request resolved: https://github.com/pytorch/pytorch/pull/166179
Approved by: https://github.com/Camyll
This commit is contained in:
Catherine Lee 2025-10-27 18:47:06 +00:00 committed by PyTorch MergeBot
parent 6ecd6b23b6
commit c6a02eae5b

View File

@ -1073,6 +1073,7 @@ aten_cpu_non_globed_sources = [
"aten/src/ATen/detail/MPSHooksInterface.cpp",
"aten/src/ATen/detail/MAIAHooksInterface.cpp",
"aten/src/ATen/detail/PrivateUse1HooksInterface.cpp",
"aten/src/ATen/detail/XLAHooksInterface.cpp",
"aten/src/ATen/detail/XPUHooksInterface.cpp",
"aten/src/ATen/detail/MTIAHooksInterface.cpp",
"aten/src/ATen/detail/IPUHooksInterface.cpp",
@ -1091,6 +1092,7 @@ aten_cpu_non_globed_headers = [
"aten/src/ATen/detail/HPUHooksInterface.h",
"aten/src/ATen/detail/MAIAHooksInterface.h",
"aten/src/ATen/detail/PrivateUse1HooksInterface.h",
"aten/src/ATen/detail/XLAHooksInterface.h",
"aten/src/ATen/detail/XPUHooksInterface.h",
"aten/src/ATen/detail/MTIAHooksInterface.h",
"aten/src/ATen/detail/IPUHooksInterface.h",