Skip to content

Commit 487dae0

Browse files
authored
Remove PyTorch AOTI headers from CMakeLists (#15533)
Removed PyTorch AOTI headers from the aoti_cuda target. ### Summary [PLEASE REMOVE] See [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests) for ExecuTorch PR guidelines. [PLEASE REMOVE] If this PR closes an issue, please add a `Fixes #<issue-id>` line. [PLEASE REMOVE] If this PR introduces a fix or feature that should be the upcoming release notes, please add a "Release notes: <area>" label. For a list of available release notes labels, check out [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests). ### Test plan [PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable.
1 parent ca4c575 commit 487dae0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

backends/aoti/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ set(_aoti_common_sources common_shims.cpp)
3030
add_library(aoti_common STATIC ${_aoti_common_sources})
3131
target_include_directories(
3232
aoti_common
33-
PUBLIC $<BUILD_INTERFACE:${EXECUTORCH_ROOT}>
34-
$<INSTALL_INTERFACE:include>
33+
PUBLIC $<BUILD_INTERFACE:${EXECUTORCH_ROOT}> $<INSTALL_INTERFACE:include>
3534
$<BUILD_INTERFACE:${EXECUTORCH_ROOT}/..>
36-
# PyTorch AOTI headers from ExecuTorch's torch detection
37-
${TORCH_INCLUDE_DIRS}
3835
)
3936
target_compile_options(
4037
aoti_common

backends/cuda/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ set(_aoti_cuda_sources
8080
add_library(aoti_cuda STATIC ${_aoti_cuda_sources})
8181
target_include_directories(
8282
aoti_cuda
83-
PUBLIC ${CUDAToolkit_INCLUDE_DIRS}
84-
$<BUILD_INTERFACE:${EXECUTORCH_ROOT}>
83+
PUBLIC ${CUDAToolkit_INCLUDE_DIRS} $<BUILD_INTERFACE:${EXECUTORCH_ROOT}>
8584
$<INSTALL_INTERFACE:include>
86-
# PyTorch AOTI headers from ExecutorTorch's torch detection
87-
${TORCH_INCLUDE_DIRS}
8885
)
8986
target_compile_options(
9087
aoti_cuda PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/EHsc /GR>

0 commit comments

Comments
 (0)