Skip to content

Commit d55bf30

Browse files
cccclaifacebook-github-bot
authored andcommitted
Add test_qnn_delegates.py to oss ci
Differential Revision: D73478247
1 parent 59870c5 commit d55bf30

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/pull.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,17 @@ jobs:
604604
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
605605
conda activate "${CONDA_ENV}"
606606
607-
# placeholder for running test_qnn_delegate.py, can use matrix such that we can trigger different jobs, refers to test-llama-runner-qnn-linux
608-
# reminder: make sure each job runs fast
607+
# The generic Linux job chooses to use base env, not the one setup by the image
608+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
609+
conda activate "${CONDA_ENV}"
610+
611+
BUILD_TOOL="cmake"
612+
613+
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
614+
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
615+
616+
# Run all the QNN tests
617+
python backends/qualcomm/tests/test_qnn_delegate.py -compile_only -m SM8650 -b build-x86/ -a /home/chenlai/local --enable_x86_64
609618
610619
test-phi-3-mini-runner-linux:
611620
name: test-phi-3-mini-runner-linux

0 commit comments

Comments
 (0)