Skip to content

Commit d305ecc

Browse files
committed
Link QNN backend to pybinding lib when built
ghstack-source-id: 1298c1c ghstack-comment-id: 3194008742 Pull-Request: #13467
1 parent 0856f59 commit d305ecc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.ci/scripts/test_backend_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ source .ci/scripts/setup-vulkan-linux-deps.sh
2525
EXTRA_BUILD_ARGS="-DEXECUTORCH_BUILD_VULKAN=ON"
2626

2727
# We need the runner to test the built library.
28-
PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release
28+
PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release --editable true
2929

3030
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$ARTIFACT_DIR/test_results.csv"

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,10 @@ if(EXECUTORCH_BUILD_PYBIND)
817817
list(APPEND _dep_libs openvino_backend)
818818
endif()
819819

820+
if(EXECUTORCH_BUILD_QNN)
821+
list(APPEND _dep_libs qnn_executorch_backend)
822+
endif()
823+
820824
if(EXECUTORCH_BUILD_XNNPACK)
821825
# need to explicitly specify XNNPACK and xnnpack-microkernels-prod here
822826
# otherwise uses XNNPACK and microkernel-prod symbols from libtorch_cpu

0 commit comments

Comments
 (0)