Skip to content

Commit a1619c6

Browse files
authored
[build Folder Migration] Move build/Codegen.cmake (again) (#9314)
### Summary I know I moved this into `scripts/build` in #9185, but I think `tools/cmake` makes more sense. This will fit perfectly with `tools/buck` (D71267118), etc. ### Test plan CI cc @larryliu0820 @lucylq
1 parent 0653b8f commit a1619c6

File tree

21 files changed

+20
-20
lines changed

21 files changed

+20
-20
lines changed

backends/cadence/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(_common_include_directories ${EXECUTORCH_ROOT}/..
2828
add_compile_definitions(C10_USING_CUSTOM_GENERATED_MACROS)
2929

3030
if(EXECUTORCH_CADENCE_CPU_RUNNER)
31-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
31+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
3232

3333
if(NOT PYTHON_EXECUTABLE)
3434
resolve_python_executable()

backends/cadence/fusion_g3/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if(NOT CMAKE_CXX_STANDARD)
1212
endif()
1313

1414
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
15-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
15+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
1616

1717
if(NOT PYTHON_EXECUTABLE)
1818
resolve_python_executable()

backends/cadence/hifi/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if(NOT CMAKE_CXX_STANDARD)
1212
endif()
1313

1414
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
15-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
15+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
1616

1717
if(NOT PYTHON_EXECUTABLE)
1818
resolve_python_executable()

backends/cadence/reference/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if(NOT CMAKE_CXX_STANDARD)
1212
endif()
1313

1414
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
15-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
15+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
1616

1717
if(NOT PYTHON_EXECUTABLE)
1818
resolve_python_executable()

configurations/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ endif()
2525
set(_common_compile_options -Wno-deprecated-declarations)
2626

2727
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
28-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
28+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2929

3030
if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
3131
# Merge optimized and portable definitions, taking optimized where available.

docs/source/kernel-library-selective-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The basic flow looks like this:
3636

3737
## APIs
3838

39-
We expose a CMake macro `[gen_selected_ops](https://github.com/pytorch/executorch/blob/main/scripts/build/Codegen.cmake#L12)`, to allow users specifying op info:
39+
We expose a CMake macro `[gen_selected_ops](https://github.com/pytorch/executorch/blob/main/tools/cmake/Codegen.cmake#L12)`, to allow users specifying op info:
4040

4141
```
4242
gen_selected_ops(

examples/apple/mps/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if(NOT CMAKE_TOOLCHAIN_FILE MATCHES ".*(iOS|ios\.toolchain)\.cmake$")
5959

6060
# portable_ops_lib
6161
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
62-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
62+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
6363
gen_selected_ops(LIB_NAME "mps_portable_ops_lib" INCLUDE_ALL_OPS "ON")
6464
generate_bindings_for_kernels(
6565
LIB_NAME "mps_portable_ops_lib" FUNCTIONS_YAML

examples/arm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ find_package(executorch CONFIG REQUIRED HINTS ${CMAKE_INSTALL_PREFIX})
3636
target_include_directories(executorch INTERFACE ${_common_include_directories})
3737

3838
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
39-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
39+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
4040

4141
# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
4242
# Executorch (for runtime). Here select all ops in functions.yaml

examples/devtools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(NOT EXECUTORCH_ROOT)
2323
endif()
2424

2525
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
26-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
26+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2727

2828
if(NOT PYTHON_EXECUTABLE)
2929
resolve_python_executable()

examples/mediatek/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if(NOT EXECUTORCH_ROOT)
2020
endif()
2121

2222
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
23-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
23+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2424

2525
if(NOT PYTHON_EXECUTABLE)
2626
resolve_python_executable()

examples/models/llama/runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(NOT EXECUTORCH_ROOT)
2121
endif()
2222

2323
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
24-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
24+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2525

2626
#
2727
# The `_<target>_srcs` lists are defined by including ${EXECUTORCH_SRCS_FILE}.

examples/models/llava/runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(NOT EXECUTORCH_ROOT)
2121
endif()
2222

2323
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
24-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
24+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2525
# Let files say "include <executorch/path/to/header.h>".
2626
set(_common_include_directories ${EXECUTORCH_ROOT}/..)
2727

examples/portable/custom_ops/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(NOT EXECUTORCH_ROOT)
2828
endif()
2929

3030
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
31-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
31+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
3232

3333
if(NOT PYTHON_EXECUTABLE)
3434
resolve_python_executable()

examples/qualcomm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT EXECUTORCH_ROOT)
1616
endif()
1717

1818
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
19-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
19+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2020

2121
if(NOT PYTHON_EXECUTABLE)
2222
resolve_python_executable()

examples/selective_build/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
2222
set(TORCH_ROOT ${EXECUTORCH_ROOT}/third-party/pytorch)
2323

2424
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
25-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
25+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2626

2727
if(NOT PYTHON_EXECUTABLE)
2828
resolve_python_executable()

extension/llm/custom_ops/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif()
2323
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
2424

2525
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
26-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
26+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2727

2828
#
2929
# The `_<target>_srcs` lists are defined by including ${EXECUTORCH_SRCS_FILE}.

extension/llm/runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(NOT EXECUTORCH_ROOT)
2121
endif()
2222

2323
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
24-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
24+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2525

2626
#
2727
# The `_<target>_srcs` lists are defined by including ${EXECUTORCH_SRCS_FILE}.

kernels/optimized/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ list(APPEND _common_compile_options -DET_BUILD_WITH_BLAS)
3434
# compiling for avx2 for now punting this to come back
3535

3636
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
37-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
37+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
3838

3939
if(NOT PYTHON_EXECUTABLE)
4040
resolve_python_executable()

kernels/portable/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif()
2424
set(_common_compile_options -Wno-deprecated-declarations)
2525

2626
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
27-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
27+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
2828

2929
if(NOT PYTHON_EXECUTABLE)
3030
resolve_python_executable()

kernels/quantized/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif()
2727
set(_common_compile_options -Wno-deprecated-declarations)
2828

2929
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
30-
include(${EXECUTORCH_ROOT}/scripts/build/Codegen.cmake)
30+
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
3131

3232
if(NOT PYTHON_EXECUTABLE)
3333
resolve_python_executable()
File renamed without changes.

0 commit comments

Comments
 (0)