You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: bring buck2 installation back, and scrub any "-DBUCK2=buck2" in our docs, to unblock users from using buck2
Reviewed By: guangy10
Differential Revision: D56540769
fbshipit-source-id: 363e592c17dd2747a693e59d8d6b6d20f43c8451
To learn how to build a similar program, visit the [ExecuTorch in C++ Tutorial](running-a-model-cpp-tutorial.md).
186
186
187
+
### [Optional] Setting Up Buck2
188
+
**Buck2** is an open-source build system that some of our examples currently utilize for building and running.
189
+
190
+
However, please note that the installation of `Buck2` is optional for using ExecuTorch and we are in the process of transitioning away from `Buck2` and migrating all relevant sections to `cmake`. This section will be removed once we finish the migration.
191
+
192
+
To set up `Buck2`, You will need the following prerequisits for this section:
193
+
* The `zstd` command line tool — install by running
194
+
```bash
195
+
pip3 install zstd
196
+
```
197
+
* Version `${executorch_version:buck2}` of the `buck2` commandline tool — you can download a
198
+
prebuilt archive for your system from [the Buck2
199
+
repo](https://github.com/facebook/buck2/releases/tag/2024-02-15). Note that
200
+
the version is important, and newer or older versions may not work with the
201
+
version of the buck2 prelude used by the ExecuTorch repo.
202
+
203
+
Configure Buck2 by decompressing with the following command (filename depends
204
+
on your system):
205
+
206
+
```bash
207
+
# For example, buck2-x86_64-unknown-linux-musl.zst or buck2-aarch64-apple-darwin.zst
Copy file name to clipboardExpand all lines: docs/source/tutorial-xnnpack-delegate-lowering.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ Now you should be able to find the executable built at `./cmake-out/backends/xnn
171
171
172
172
173
173
## Running the XNNPACK Model with Buck
174
-
Alternatively, you can use `buck2` to run the `.pte` file with XNNPACK delegate instructions in it on your host platform. You can follow the instructions here to install [buck2](getting-started-setup.md#building-a-runtime). You can now run it with the prebuilt `xnn_executor_runner` provided in the examples. This will run the model on some sample inputs.
174
+
Alternatively, you can use `buck2` to run the `.pte` file with XNNPACK delegate instructions in it on your host platform. You can follow the instructions here to install [buck2](getting-started-setup.md#Build-&-Run). You can now run it with the prebuilt `xnn_executor_runner` provided in the examples. This will run the model on some sample inputs.
175
175
176
176
```bash
177
177
buck2 run examples/xnnpack:xnn_executor_runner -- --model_path ./mv2_xnnpack_fp32.pte
0 commit comments