File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -915,9 +915,8 @@ jobs:
915
915
- if : ${{ steps.install-et.outputs.cache-hit != 'true' }}
916
916
continue-on-error : true
917
917
run : |
918
- echo "Intalling ExecuTorch"
919
- export TORCHCHAT_ROOT=${PWD}
920
- bash scripts/install_et.sh
918
+ echo "Installing ExecuTorch"
919
+ bash scripts/build_native.sh et
921
920
- name : Install ET pip
922
921
run : |
923
922
echo "ET build directory"
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export CMAKE_OUT_DIR="cmake-out-android"
30
30
build_runner_et () {
31
31
rm -rf cmake-out-android
32
32
echo " ET BUILD DIR IS ${ET_BUILD_DIR} "
33
- cmake -DET_USE_ADPATIVE_THREADS =ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 -S . -B cmake-out-android -G Ninja
33
+ cmake -DET_USE_ADAPTIVE_THREADS =ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 -S . -B cmake-out-android -G Ninja
34
34
cmake --build cmake-out-android/ -j16 --config Release --target et_run
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ if(executorch_FOUND)
50
50
51
51
set (_srcs runner/run.cpp )
52
52
set (_common_compile_options -D__ET__MODEL -D_GLIBCXX_USE_CXX11_ABI=1 )
53
- if (ET_USE_ADPATIVE_THREADS )
54
- list (APPEND _common_compile_options -DET_USE_ADPATIVE_THREADS )
53
+ if (ET_USE_ADAPTIVE_THREADS )
54
+ list (APPEND _common_compile_options -DET_USE_ADAPTIVE_THREADS )
55
55
56
56
set (EXECUTORCH_SRC_ROOT ${TORCHCHAT_ROOT} /${ET_BUILD_DIR}/src/executorch )
57
57
set (XNNPACK_ROOT ${EXECUTORCH_SRC_ROOT} /backends/xnnpack )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ torch::Device cpu_device(torch::kCPU);
33
33
#include < executorch/runtime/core/exec_aten/exec_aten.h>
34
34
#include < executorch/runtime/core/exec_aten/util/scalar_type_util.h>
35
35
36
- #if defined(ET_USE_ADPATIVE_THREADS )
36
+ #if defined(ET_USE_ADAPTIVE_THREADS )
37
37
#include < executorch/backends/xnnpack/threadpool/cpuinfo_utils.h>
38
38
#include < executorch/backends/xnnpack/threadpool/threadpool.h>
39
39
#endif
@@ -823,7 +823,7 @@ int main(int argc, char* argv[]) {
823
823
int vocab_size = -1 ;
824
824
int llama_ver = 2 ;
825
825
826
- #if defined(ET_USE_ADPATIVE_THREADS )
826
+ #if defined(ET_USE_ADAPTIVE_THREADS )
827
827
uint32_t num_performant_cores =
828
828
torch::executorch::cpuinfo::get_num_performant_cores ();
829
829
if (num_performant_cores > 0 ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ clone_executorch() {
38
38
install_executorch_python_libs () {
39
39
if [ ! -d " ${TORCHCHAT_ROOT} /${ET_BUILD_DIR} " ]; then
40
40
echo " Directory ${TORCHCHAT_ROOT} /${ET_BUILD_DIR} does not exist."
41
- echo " Make sur eyou run clone_executorch"
41
+ echo " Make sure you run clone_executorch"
42
42
exit 1
43
43
fi
44
44
pushd ${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /src
@@ -63,7 +63,8 @@ COMMON_CMAKE_ARGS="\
63
63
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
64
64
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
65
65
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
66
- -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON"
66
+ -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
67
+ -DEXECUTORCH_BUILD_XNNPACK=ON"
67
68
68
69
install_executorch () {
69
70
# AOT lib has to be build for model export
You can’t perform that action at this time.
0 commit comments