Lines Matching +full:setup +full:- +full:ndk
5 … Ninja or Xcode. For information, see [cmake-generators(7)](https://cmake.org/cmake/help/latest/ma…
12 - `libexecutorch_core.a`: The core of the ExecuTorch runtime. Does not contain any
14 - `libportable_kernels.a`: The implementations of ATen-compatible operators,
16 - `libportable_ops_lib.a`: Generated code that registers the contents
18 - NOTE: This must be linked into your application with a flag like
19 `-Wl,-force_load` or `-Wl,--whole-archive`. It contains load-time functions
22 - `executor_runner`: An example tool that runs a `.pte` program file using all
27 ## One-time setup to prepare for CMake Build
32 - Run `pip install tomli`
34 - Run `conda install cmake` or `pip install cmake`.
46 # Clean cmake cache directory (cmake-out). It's a good practice to do this
48 bash install_requirements.sh --clean
51 … do it again until you pull from the upstream repo again, or if you modify any CMake-related files.
57 CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release"
62 CMAKE_FLAGS="$CMAKE_FLAGS -DOPTIMIZE_SIZE=ON"
73 # `cmake-out` directory.
74 cmake "$CMAKE_FLAGS" -Bcmake-out .
76 # NOTE: The `-j` argument specifies how many jobs/processes to use when
78 # "core count + 1" as the `-j` value.
79 cmake --build cmake-out -j9
86 [Setting up ExecuTorch](getting-started-setup.md#building-a-runtime).
91 ./cmake-out/executor_runner --model_path path/to/add.pte
114 - Prerequisite: [Android NDK](https://developer.android.com/ndk), choose one of the following:
115 …- Option 1: Download Android Studio by following the instructions to [install ndk](https://develop…
116 …- Option 2: Download Android NDK directly from [here](https://developer.android.com/ndk/downloads).
118 Assuming Android NDK is available, run:
121 rm -rf cmake-android-out && mkdir cmake-android-out && cd cmake-android-out
123 # point -DCMAKE_TOOLCHAIN_FILE to the location where ndk is installed
124 cmake -DCMAKE_TOOLCHAIN_FILE=/Users/{user_name}/Library/Android/sdk/ndk/25.2.9519653/build/cmake/an…
127 cmake --build cmake-android-out -j9
129 adb shell mkdir -p /data/local/tmp/executorch
131 adb push cmake-android-out/executor_runner /data/local/tmp/executorch
135 adb shell "/data/local/tmp/executorch/executor_runner --model_path /data/local/tmp/executorch/add.…
140 …s](https://developer.apple.com/documentation/xcode/creating-a-multi-platform-binary-framework-bund…
147 xcode-select --install
156 Run the above command with `--help` flag to learn more on how to build additional backends
157 (like [Core ML](build-run-coreml.md), [MPS](build-run-mps.md) or XNNPACK), etc.
161 your targets and don't forget to add an extra linker flag `-all_load`.
163 Check out the [iOS Demo App](demo-apps-ios.md) tutorial for more info.
168 You have successfully cross-compiled `executor_runner` binary to iOS and Android platforms. You can…
170 * [Selective build](./kernel-library-selective_build) to build the runtime that links to only kerne…
171 * Tutorials on building [Android](./demo-apps-android.md) and [iOS](./demo-apps-ios.md) demo apps.
172 …bedded devices such as [ARM Cortex-M/Ethos-U](./executorch-arm-delegate-tutorial.md) and [XTensa H…