Skip to content

Commit 779f35d

Browse files
committed
added temporary build scripts
1 parent 521de5a commit 779f35d

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

run_build.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
bash install_executorch.sh --clean
4+
5+
bash install_executorch.sh
6+
7+
pip install -e .
8+
9+
cmake -DPYTHON_EXECUTABLE=python \
10+
-DCMAKE_INSTALL_PREFIX=cmake-out \
11+
-DEXECUTORCH_ENABLE_LOGGING=1 \
12+
-DCMAKE_BUILD_TYPE=Release \
13+
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
14+
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
15+
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
16+
-DEXECUTORCH_BUILD_XNNPACK=OFF \
17+
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
18+
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
19+
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
20+
-DEXECUTORCH_BUILD_KERNELS_TORCHAO=ON \
21+
-DCMAKE_PREFIX_PATH=$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())') \
22+
-Bcmake-out .
23+
24+
cmake --build cmake-out -j16 --target install --config Release
25+

run_ios_build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
bash install_executorch.sh --clean
2+
3+
bash install_executorch.sh
4+
5+
pip install -e .
6+
7+
./install_requirements.sh
8+
9+
# CoreML-only requirements:
10+
./backends/apple/coreml/scripts/install_requirements.sh
11+
12+
# MPS-only requirements:
13+
./backends/apple/mps/install_requirements.sh
14+
15+
./scripts/build_apple_frameworks.sh --Release --Debug --coreml --mps --xnnpack --custom --optimized --portable --quantized --torchao

run_torchao_build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
bash install_executorch.sh --clean
2+
3+
bash install_executorch.sh
4+
5+
pip install -e .
6+
7+
./install_requirements.sh
8+
9+
# CoreML-only requirements:
10+
./backends/apple/coreml/scripts/install_requirements.sh
11+
12+
# MPS-only requirements:
13+
./backends/apple/mps/install_requirements.sh
14+
15+
./scripts/build_apple_frameworks.sh --Release --torchao

0 commit comments

Comments
 (0)