@@ -119,8 +119,8 @@ cd $EXECUTORCH_ROOT
119
119
cp schema/program.fbs exir/_serialize/program.fbs
120
120
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
121
121
122
- mkdir cmake_out
123
- cd cmake_out
122
+ mkdir build_x86_64
123
+ cd build_x86_64
124
124
cmake .. -DEXECUTORCH_BUILD_QNN=ON -DQNN_SDK_ROOT=${QNN_SDK_ROOT}
125
125
cmake --build . -t " PyQnnManagerAdaptor" " PyQnnWrapperAdaptor" -j8
126
126
@@ -138,8 +138,8 @@ Commands to build `qnn_executor_runner` for Android:
138
138
139
139
``` bash
140
140
cd $EXECUTORCH_ROOT
141
- mkdir cmake_android_out
142
- cd cmake_android_out
141
+ mkdir build_android
142
+ cd build_android
143
143
# build executorch & qnn_executorch_backend
144
144
cmake .. \
145
145
-DCMAKE_INSTALL_PREFIX=$PWD \
@@ -166,7 +166,7 @@ cmake --build examples/qualcomm -j16
166
166
167
167
** Note:** If you want to build for release, add ` -DCMAKE_BUILD_TYPE=Release ` to the ` cmake ` command options.
168
168
169
- You can find ` qnn_executor_runner ` under ` cmake_android_out /examples/qualcomm/` .
169
+ You can find ` qnn_executor_runner ` under ` build_android /examples/qualcomm/` .
170
170
171
171
172
172
## Deploying and running on device
@@ -178,7 +178,7 @@ We use deeplab-v3-resnet101 as an example in this tutorial. Run below commands t
178
178
179
179
```
180
180
cd $EXECUTORCH_ROOT
181
- python -m examples.qualcomm.scripts.deeplab_v3 -b cmake_android_out -m SM8550 --compile_only --download
181
+ python -m examples.qualcomm.scripts.deeplab_v3 -b build_android -m SM8550 --compile_only --download
182
182
```
183
183
184
184
You might see something like below:
@@ -223,8 +223,8 @@ So, we can run `qnn_executor_runner` like
223
223
224
224
``` bash
225
225
adb push ./deeplab_v3/dlv3_qnn.pte ${DEVICE_DIR}
226
- adb push ${EXECUTORCH_ROOT} /cmake_android_out /examples/qualcomm/qnn_executor_runner ${DEVICE_DIR}
227
- adb push ${EXECUTORCH_ROOT} /cmake_android_out /lib/libqnn_executorch_backend.so ${DEVICE_DIR}
226
+ adb push ${EXECUTORCH_ROOT} /build_android /examples/qualcomm/qnn_executor_runner ${DEVICE_DIR}
227
+ adb push ${EXECUTORCH_ROOT} /build_android /lib/libqnn_executorch_backend.so ${DEVICE_DIR}
228
228
adb shell " cd ${DEVICE_DIR} \
229
229
&& export LD_LIBRARY_PATH=${DEVICE_DIR} \
230
230
&& export ADSP_LIBRARY_PATH=${DEVICE_DIR} \
0 commit comments