From 0f4d1c9336897d93b245f7cd66d57c44c90ef86c Mon Sep 17 00:00:00 2001 From: Guang Yang Date: Tue, 28 May 2024 18:07:50 -0700 Subject: [PATCH] Fresh setup m1 (#3759) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/3759 Reviewed By: mcr229 Differential Revision: D57887358 Pulled By: guangy10 fbshipit-source-id: 8e63de15fafb498b05828440ac8d8c51204e8042 (cherry picked from commit 26daed7363a4a544e1194f76edfb2585b3b1e4e3) --- docs/source/getting-started-setup.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/getting-started-setup.md b/docs/source/getting-started-setup.md index a1a2daec57d..0c6d6d86ccc 100644 --- a/docs/source/getting-started-setup.md +++ b/docs/source/getting-started-setup.md @@ -92,6 +92,7 @@ portability details. # Install ExecuTorch pip package and its dependencies, as well as # development tools like CMake. + # If developing on a Mac, make sure to install the Xcode Command Line Tools first. ./install_requirements.sh ``` @@ -201,10 +202,10 @@ To set up `Buck2`, You will need the following prerequisits for this section: version of the buck2 prelude used by the ExecuTorch repo. Configure Buck2 by decompressing with the following command (filename depends - on your system): + on your system, and the location of the binary can be different): ```bash - # For example, buck2-x86_64-unknown-linux-musl.zst or buck2-aarch64-apple-darwin.zst + # For example, buck2-x86_64-unknown-linux-musl.zst for Linux, or buck2-aarch64-apple-darwin.zst for Mac with Apple silicon. zstd -cdq buck2-DOWNLOADED_FILENAME.zst > /tmp/buck2 && chmod +x /tmp/buck2 ``` @@ -217,6 +218,8 @@ After the installation, you can run the `add.pte` program by following `buck2` c /tmp/buck2 run //examples/portable/executor_runner:executor_runner -- --model_path add.pte ``` +Note that the first run may take a while as it will have to complie the kernels from sources + ## Next Steps Congratulations! You have successfully exported, built, and run your first