onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[Mobile] QNN SetupBackend fails due to 32-bit library loading in 64-bit environment

Open w11m opened this issue 1 year ago • 0 comments

Describe the issue

While initializing ONNX Runtime on a mobile device, I encountered an issue with the QNNExecutionProvider failing to load the backend library libQnnHtpVXX.so. The error log indicates that the library is 32-bit, whereas the device and ONNX Runtime are operating in a 64-bit environment.

Here is the error log: [E:onnxruntime:, qnn_execution_provider.cc:296 GetCapability] QNN SetupBackend failed qnn_backend_manager.cc:40 GetQnnInterfaceProviders Unable to load backend, error: dlopen failed: "/vendor/lib/rfsa/adsp/libQnnHtpVXX.so" is 32-bit instead of 64-bit

if there any solution for this or I need to check with the libQnnHtpVXX.so prvider vendor?

To reproduce

Initialize ONNX Runtime on a 64-bit Android device using the QNN execution provider. Attempt to run a model that requires the libQnnHtpVXX.so backend library. Observe the error indicating failure due to the library being 32-bit in a 64-bit environment.

Urgency

Might be urgent

Platform

Android

OS Version

A15

ONNX Runtime Installation

Built from Source

Compiler Version (if 'Built from Source')

Package Name (if 'Released Package')

None

ONNX Runtime Version or Commit ID

1.16.1

ONNX Runtime API

C++/C

Architecture

ARM64

Execution Provider

Other / Unknown

Execution Provider Library Version

QNN-2.25.7

w11m avatar Oct 21 '24 06:10 w11m