Skip to content

Commit 0d98385

Browse files
committed
update
1 parent 143b7d0 commit 0d98385

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.ci/scripts/test_wheel_package_qnn.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,25 @@ conda run -p "$TEMP_ENV_DIR/env" pip install "$WHEEL_FILE"
100100
conda run -p "$TEMP_ENV_DIR/env" pip install torch=="2.9.0.dev20250801" --index-url "https://download.pytorch.org/whl/nightly/cpu"
101101
conda run -p "$TEMP_ENV_DIR/env" pip install --pre torchao --index-url "https://download.pytorch.org/whl/nightly/cpu"
102102

103+
# ----------------------------
104+
# Check .so files in the wheel
105+
# ----------------------------
106+
echo "Checking for .so files inside the wheel..."
107+
WHEEL_SO_FILES=$(unzip -l "$WHEEL_FILE" | awk '{print $4}' | grep "executorch/backends/qualcomm/python" || true)
108+
if [ -z "$WHEEL_SO_FILES" ]; then
109+
echo "WARNING: No .so files found in wheel under executorch/backends/qualcomm/python"
110+
else
111+
echo "Wheel contains the following .so files:"
112+
echo "$WHEEL_SO_FILES"
113+
fi
114+
115+
# ----------------------------
116+
# Check installed .so files in conda env
117+
# ----------------------------
118+
echo "Checking installed executorch/backends/qualcomm/python contents in conda env..."
119+
ENV_SO_DIR="$TEMP_ENV_DIR/env/lib/python3.10/site-packages/executorch/backends/qualcomm/python"
120+
ls -l "$ENV_SO_DIR" || echo "Folder does not exist!"
121+
103122
# Run import tests
104123
conda run -p "$TEMP_ENV_DIR/env" python -c "import executorch; print('executorch imported successfully')"
105124
conda run -p "$TEMP_ENV_DIR/env" python -c "import executorch.backends.qualcomm; print('executorch.backends.qualcomm imported successfully')"

0 commit comments

Comments
 (0)