Skip to content

Commit 76d4c87

Browse files
Remove Buck2 from examples/sdk/README.md (#4299) (#4314)
Summary: Pull Request resolved: #4299 Remove Buck2 reference Reviewed By: lucylq Differential Revision: D59922659 fbshipit-source-id: 12f7c59e9ea23afd743435115e9bd5b5afc825d4 (cherry picked from commit 8e0f856) Co-authored-by: Hansong Zhang <[email protected]>
1 parent 7bef85e commit 76d4c87

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

examples/sdk/README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ python3 -m examples.sdk.scripts.export_bundled_program -m mv2 # for MobileNetv2
3333
3. Once we have the BundledProgram binary (`.bpte`) file, then let's run and verify it with ExecuTorch runtime and BundledProgram APIs using the [sdk_example_runner](sdk_example_runner/sdk_example_runner.cpp).
3434

3535
```bash
36-
buck2 run examples/sdk/sdk_example_runner:sdk_example_runner -- --bundled_program_path mv2_bundled.bpte --output_verification
37-
```
36+
cd executorch
37+
rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake -DEXECUTORCH_BUILD_SDK=1 -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=1 ..
38+
cd ..
39+
cmake --build cmake-out -j8 -t sdk_example_runner
40+
./cmake-out/examples/sdk/sdk_example_runner --bundled_program_path mv2_bundled.bpte --output_verification
41+
```
3842

3943

4044
## ETDump
@@ -46,19 +50,7 @@ We offer an example runner that accepts a `BundledProgram` (`.bpte`) and runs a
4650

4751
Running the program will generate an `ETDump` file (`.etdp`) at the location specified by `--etdump_path`. Make sure to build the program as specified below to enable the event tracer.
4852

49-
**Buck**
50-
5153
```bash
52-
python3 -m examples.sdk.scripts.export_bundled_program -m mv2
53-
buck2 run -c executorch.event_tracer_enabled=true examples/sdk/sdk_example_runner:sdk_example_runner -- --bundled_program_path mv2_bundled.bpte --etdump_path mv2_etdump.etdp
54-
```
55-
**CMake**
56-
57-
```bash
58-
cd executorch
59-
rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake -DEXECUTORCH_BUILD_SDK=1 -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=1 ..
60-
cd ..
61-
cmake --build cmake-out -j8 -t sdk_example_runner
6254
./cmake-out/examples/sdk/sdk_example_runner --bundled_program_path mv2_bundled.bpte --etdump_path mv2_etdump.etdp
6355
```
6456

0 commit comments

Comments
 (0)