Skip to content

Commit b152bbc

Browse files
committed
Make minimal changes
1 parent 687425d commit b152bbc

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ cd $EXECUTORCH_ROOT
119119
cp schema/program.fbs exir/_serialize/program.fbs
120120
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
121121

122-
mkdir cmake_out
123-
cd cmake_out
122+
mkdir build_x86_64
123+
cd build_x86_64
124124
cmake .. -DEXECUTORCH_BUILD_QNN=ON -DQNN_SDK_ROOT=${QNN_SDK_ROOT}
125125
cmake --build . -t "PyQnnManagerAdaptor" "PyQnnWrapperAdaptor" -j8
126126

@@ -138,8 +138,8 @@ Commands to build `qnn_executor_runner` for Android:
138138

139139
```bash
140140
cd $EXECUTORCH_ROOT
141-
mkdir cmake_android_out
142-
cd cmake_android_out
141+
mkdir build_android
142+
cd build_android
143143
# build executorch & qnn_executorch_backend
144144
cmake .. \
145145
-DCMAKE_INSTALL_PREFIX=$PWD \
@@ -166,7 +166,7 @@ cmake --build examples/qualcomm -j16
166166

167167
**Note:** If you want to build for release, add `-DCMAKE_BUILD_TYPE=Release` to the `cmake` command options.
168168

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/`.
170170

171171

172172
## Deploying and running on device
@@ -178,7 +178,7 @@ We use deeplab-v3-resnet101 as an example in this tutorial. Run below commands t
178178

179179
```
180180
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
182182
```
183183

184184
You might see something like below:
@@ -223,8 +223,8 @@ So, we can run `qnn_executor_runner` like
223223

224224
```bash
225225
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}
228228
adb shell "cd ${DEVICE_DIR} \
229229
&& export LD_LIBRARY_PATH=${DEVICE_DIR} \
230230
&& export ADSP_LIBRARY_PATH=${DEVICE_DIR} \

examples/qualcomm/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ endif()
3535
# portable_ops_lib, etdump, bundled_program.
3636
find_package(executorch CONFIG REQUIRED)
3737
target_compile_options(executorch INTERFACE -DET_EVENT_TRACER_ENABLED)
38-
set(gflags_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../third-party/gflags)
3938
find_package(gflags REQUIRED)
4039

4140
set(_common_compile_options -Wno-deprecated-declarations -fPIC)

0 commit comments

Comments
 (0)