Forums - Call to qnnInterface.propertyHasCapability fails with QNN_PROPERTY_NOT_SUPPORTED or QNN_PROPERTY_ERROR_UNKNOWN_KEY

3 posts / 0 new
Last post
Call to qnnInterface.propertyHasCapability fails with QNN_PROPERTY_NOT_SUPPORTED or QNN_PROPERTY_ERROR_UNKNOWN_KEY
manuel.k
Join Date: 27 Feb 23
Posts: 15
Posted: Fri, 2023-03-24 07:28

Dear Qualcomm team,

while integrating the QnnSampleApp of the QNN SDK into an Android app, we run into the problem of qnnInterface.propertyHasCapability() failing with status code QNN_PROPERTY_NOT_SUPPORTED (using backend libQnnCpu.so) and QNN_PROPERTY_ERROR_UNKNOWN_KEY (using backend libQnnGpu.so). 
As expected, later calls like qnnInterface.deviceCreate() fail as well.
 
Prior calls to dynamicloadutil::getQnnFunctionPointers(), new sample_app::QnnSampleApp(), app->initialize() and app->initializeBackend() run without errors.
 
Could you provide any tipps on what might be causing this error? The device is a recent Sharp P7 Android phone.
Any help is appreciated!
 
Best regards,
Manuel Kolmet
  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sat, 2023-03-25 23:02

Dear developer,

Which QNN version you used?

Could you please share more about logcats to us?

  • Up0
  • Down0
manuel.k
Join Date: 27 Feb 23
Posts: 15
Posted: Mon, 2023-03-27 06:53

Hello Wei,

Thank you for your response. We are using version 2.08 (most recent), but have seen the same error with version 2.05.

The error occurs both on an Android device and when compiling and running on Linux (20.04 or 22.04).

Our compiler is Clang-9 or Clang-10, both give the same results.

Please see the two respecitve outputs below:

Version 2.08:

bin/x86_64-linux-clang/qnn-sample-app \
> --backend ../../target/x86_64-linux-clang/lib/libQnnCpu.so \
> --model libnet_g.so \
> --input_list inputs.txt \
> --log_level verbose
     0.0ms [  INFO ] Model: libnet_g.so
     0.1ms [  INFO ] Backend: ../../target/x86_64-linux-clang/lib/libQnnCpu.so
     1.6ms [  INFO ] Loading model shared library ([model].so)
     1.8ms [  INFO ] qnn-sample-app build version: v2.8.0.230223123141_52150
     1.8ms [  INFO ] Backend        build version: v2.8.0.230223123141_52150
     1.9ms [  INFO ] Initializing logging in the backend. Callback: [0x40b030], Log Level: [4]
     2.0ms [  INFO ] Initialize Backend Returned Status = 0
     2.0ms [ ERROR ] Device property not supported.
   632.9ms [VERBOSE] Return from readDataFromFile()
  9192.3ms [  INFO ] cleaning up resources for input tensors
  9192.6ms [  INFO ] cleaning up resources for output tensors

 

Version 2.05:

bin/x86_64-linux-clang/qnn-sample-app \
> --backend ../../target/x86_64-linux-clang/lib/libQnnCpu.so \
> --model libnet_g.so \
> --input_list inputs.txt \
> --log_level verbose
     0.0ms [  INFO ] Model: libnet_g.so
     0.1ms [  INFO ] Backend: ../../target/x86_64-linux-clang/lib/libQnnCpu.so
     1.6ms [  INFO ] Loading model shared library ([model].so)
     1.8ms [  INFO ] qnn-sample-app build version: v2.5.0.221123101258_42157
     1.9ms [  INFO ] Backend        build version: v2.5.0.221123101258_42157
     1.9ms [  INFO ] Initializing logging in the backend. Callback: [0x40aff0], Log Level: [4]
     2.0ms [  INFO ] Initialize Backend Returned Status = 0
     2.1ms [ ERROR ] Device property not supported or not known to backend
   633.6ms [VERBOSE] Return from readDataFromFile()
  9230.7ms [  INFO ] cleaning up resources for input tensors
  9230.9ms [  INFO ] cleaning up resources for output tensors

 

Is this something you could help us with?

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.