Skip to content

Commit 7d2e667

Browse files
remove buck2 installation from setup page (#4213) (#4252)
Summary: Pull Request resolved: #4213 For alpha+, we need to remove all buck2 commands and buck2 dependencies from static doc and github readmes. This diff gets rid of the buck2 installation from set up page. Reviewed By: kirklandsign Differential Revision: D59642493 fbshipit-source-id: ca5cf7d6062c72b0bd0c8fbe7f95771b1a5be8bc (cherry picked from commit 051b01b) Co-authored-by: Songhao Jia <[email protected]>
1 parent a2e985d commit 7d2e667

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

docs/source/getting-started-setup.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -191,41 +191,6 @@ Output 0: tensor(sizes=[1], [2.])
191191

192192
To learn how to build a similar program, visit the [Runtime APIs Tutorial](extension-module.md).
193193

194-
### [Optional] Setting Up Buck2
195-
**Buck2** is an open-source build system that some of our examples currently utilize for building and running.
196-
197-
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.
198-
199-
To set up `Buck2`, You will need the following prerequisits for this section:
200-
* The `zstd` command line tool — install by running
201-
```bash
202-
pip3 install zstd
203-
```
204-
* Version `${executorch_version:buck2}` of the `buck2` commandline tool — you can download a
205-
prebuilt archive for your system from [the Buck2
206-
repo](https://github.com/facebook/buck2/releases/tag/2024-05-15). Note that
207-
the version is important, and newer or older versions may not work with the
208-
version of the buck2 prelude used by the ExecuTorch repo.
209-
210-
Configure Buck2 by decompressing with the following command (filename depends
211-
on your system, and the location of the binary can be different):
212-
213-
```bash
214-
# For example, buck2-x86_64-unknown-linux-musl.zst for Linux, or buck2-aarch64-apple-darwin.zst for Mac with Apple silicon.
215-
zstd -cdq buck2-DOWNLOADED_FILENAME.zst > /tmp/buck2 && chmod +x /tmp/buck2
216-
```
217-
218-
You may want to copy the `buck2` binary into your `$PATH` so you can run it
219-
as `buck2`.
220-
221-
After the installation, you can run the `add.pte` program by following `buck2` command:
222-
223-
```bash
224-
/tmp/buck2 run //examples/portable/executor_runner:executor_runner -- --model_path add.pte
225-
```
226-
227-
Note that the first run may take a while as it will have to complie the kernels from sources
228-
229194
## Next Steps
230195

231196
Congratulations! You have successfully exported, built, and run your first

0 commit comments

Comments
 (0)