Skip to content

[Build] Build python interface for Onnxruntime-qnn on aarch64 Open Embedded Linux #24102

Open
@jugaloza

Description

@jugaloza

Describe the issue

I am trying to build onnxruntime-qnn python interface, for QCS 8550 board having Open Embedded Linux.

I have also made the below Changes in CMakeLists.txt file in cmake folder of onnxruntime by taking reference from the #21203

set(QNN_ARCH_ABI aarch64-oe-linux-gcc11.2) else() set(QNN_ARCH_ABI aarch64-oe-linux-gcc11.2)

Build is getting completed successfully, but when I am trying to install wheel file on the board, it is showing wheel file is not supported for this platform.

And also strange thing is even when wheel file is generated it shows x86_64 as architecture name in wheel file.

onnxruntime_qnn-1.22.0-cp310-cp310-linux_x86_64.whl

Note: I had build the onnxruntime_qnn on Ubuntu 22.04.5 LTS System with below requisites

Python 3.10
QNN SDK version 2.22.6.240515

Urgency

We have very tight deadline, so we are looking for solution/guidance ASAP.

Target platform

Customized Open Embedded Linux on QCS 8550 board

Build script

bash build.sh --arm64 --use_qnn --qnn_home=/opt/qcom/aistack/qairt/2.22.6.240515/ --parallel --build_wheel --skip_submodule_sync --config Release --build_dir build/Linux_QCS8550_2_22_SDK_VERSION --enable_pybind --skip_tests

Error / output

ERROR: onnxruntime_qnn-1.22.0-cp310-cp310-linux_x86_64.whl is not a supported wheel on this platform.

Visual Studio Version

No response

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:QNNissues related to QNN exeution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions