File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments