Skip to content

Commit cef49d8

Browse files
metascroymalfet
authored andcommitted
update runner-et to use et-build. Add ET logging to build. (#251)
1 parent d56db51 commit cef49d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runner-et/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ include(CMakePrintHelpers)
77
set(TORCHCHAT_ROOT $ENV{TORCHCHAT_ROOT})
88
cmake_print_variables(TORCHCHAT_ROOT)
99

10-
find_package(executorch CONFIG REQUIRED PATHS ${TORCHCHAT_ROOT}/build/install/lib/cmake/ExecuTorch)
11-
set(_common_include_directories ${TORCHCHAT_ROOT}/build/src)
10+
find_package(executorch CONFIG REQUIRED PATHS ${TORCHCHAT_ROOT}/et-build/install/lib/cmake/ExecuTorch)
11+
set(_common_include_directories ${TORCHCHAT_ROOT}/et-build/src)
1212
cmake_print_variables(_common_include_directories)
1313

1414
target_include_directories(executorch INTERFACE ${_common_include_directories}) # Ideally ExecuTorch installation process would do this
@@ -19,7 +19,7 @@ target_link_libraries(
1919
runner_et PRIVATE
2020
executorch
2121
extension_module
22-
${TORCHCHAT_ROOT}/build/src/executorch/cmake-out/extension/data_loader/libextension_data_loader.a # This one does not get installed by ExecuTorch
22+
${TORCHCHAT_ROOT}/et-build/src/executorch/cmake-out/extension/data_loader/libextension_data_loader.a # This one does not get installed by ExecuTorch
2323
optimized_kernels
2424
portable_kernels
2525
cpublas

scripts/install_et.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ install_executorch() {
4949
echo "Building and installing C++ libraries"
5050
echo "Inside: ${PWD}"
5151
mkdir cmake-out
52-
cmake -DCMAKE_BUILD_TYPE=Release -DEXECUTORCH_BUILD_OPTIMIZED=ON -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON -DEXECUTORCH_BUILD_XNNPACK=ON -S . -B cmake-out -G Ninja
52+
cmake -DCMAKE_BUILD_TYPE=Release -DEXECUTORCH_ENABLE_LOGGING=ON -DEXECUTORCH_LOG_LEVEL=Info -DEXECUTORCH_BUILD_OPTIMIZED=ON -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON -DEXECUTORCH_BUILD_XNNPACK=ON -S . -B cmake-out -G Ninja
5353
cmake --build cmake-out
5454
cmake --install cmake-out --prefix ${TORCHCHAT_ROOT}/et-build/install
5555
popd

0 commit comments

Comments
 (0)