Skip to content

Commit

Permalink
Remove Buck2 from examples/sdk/README.md (#4299) (#4314)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pytorchbot and kirklandsign authored Jul 19, 2024
1 parent 7bef85e commit 76d4c87
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions examples/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ python3 -m examples.sdk.scripts.export_bundled_program -m mv2 # for MobileNetv2
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).

```bash
buck2 run examples/sdk/sdk_example_runner:sdk_example_runner -- --bundled_program_path mv2_bundled.bpte --output_verification
```
cd executorch
rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake -DEXECUTORCH_BUILD_SDK=1 -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=1 ..
cd ..
cmake --build cmake-out -j8 -t sdk_example_runner
./cmake-out/examples/sdk/sdk_example_runner --bundled_program_path mv2_bundled.bpte --output_verification
```


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

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.

**Buck**

```bash
python3 -m examples.sdk.scripts.export_bundled_program -m mv2
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
```
**CMake**

```bash
cd executorch
rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake -DEXECUTORCH_BUILD_SDK=1 -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=1 ..
cd ..
cmake --build cmake-out -j8 -t sdk_example_runner
./cmake-out/examples/sdk/sdk_example_runner --bundled_program_path mv2_bundled.bpte --etdump_path mv2_etdump.etdp
```

Expand Down

0 comments on commit 76d4c87

Please sign in to comment.