Skip to content

Commit 19e5a45

Browse files
pytorchbotcccclai
andauthored
Improve the qcomm aot part docs (#5939)
Improve the qcomm aot part docs (#5868) Summary: Pull Request resolved: #5868 the schema file copy is an actual AOT step. It's a workaround but it has been here a while, probably easier to have it as part of the build script instead of manually doing it everytime Reviewed By: kirklandsign Differential Revision: D63878765 fbshipit-source-id: 7fc4b848b72e2859364e21cbea3dd1b433d6cd8e (cherry picked from commit 478a9b6) Co-authored-by: Chen Lai <[email protected]>
1 parent 1651449 commit 19e5a45

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

backends/qualcomm/scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ if [ "$BUILD_X86_64" = true ]; then
135135

136136
rm -f $PRJ_ROOT/backends/qualcomm/python/*
137137
cp -fv $BUILD_ROOT/backends/qualcomm/Py* "$PRJ_ROOT/backends/qualcomm/python"
138+
cp -fv "$PRJ_ROOT/schema/program.fbs" "$PRJ_ROOT/exir/_serialize/program.fbs"
139+
cp -fv "$PRJ_ROOT/schema/scalar_type.fbs" "$PRJ_ROOT/exir/_serialize/scalar_type.fbs"
138140

139141
EXAMPLE_ROOT=examples/qualcomm
140142
CMAKE_PREFIX_PATH="${BUILD_ROOT}/lib/cmake/ExecuTorch;${BUILD_ROOT}/third-party/gflags;"

docs/source/build-run-qualcomm-ai-engine-direct-backend.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ cmake --build $PWD --target "PyQnnManagerAdaptor" "PyQnnWrapperAdaptor" -j$(npro
147147
# The filename might vary depending on your Python and host version.
148148
cp -f backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so $EXECUTORCH_ROOT/backends/qualcomm/python
149149
cp -f backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so $EXECUTORCH_ROOT/backends/qualcomm/python
150+
151+
# Workaround for fbs files in exir/_serialize
152+
cp $EXECUTORCH_ROOT/schema/program.fbs $EXECUTORCH_ROOT/exir/_serialize/program.fbs
153+
cp $EXECUTORCH_ROOT/schema/scalar_type.fbs $EXECUTORCH_ROOT/exir/_serialize/scalar_type.fbs
150154
```
151155

152156
### Runtime:
@@ -205,9 +209,6 @@ We use deeplab-v3-resnet101 as an example in this tutorial. Run below commands t
205209

206210
```bash
207211
cd $EXECUTORCH_ROOT
208-
# Workaround for fbs files in exir/_serialize
209-
cp schema/program.fbs exir/_serialize/program.fbs
210-
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
211212

212213
python -m examples.qualcomm.scripts.deeplab_v3 -b build-android -m SM8550 --compile_only --download
213214
```

0 commit comments

Comments
 (0)