Forums - QAM8295P qnn-platform-validator fails for dsp.

5 posts / 0 new
Last post
QAM8295P qnn-platform-validator fails for dsp.
rgopi
Join Date: 11 Jun 24
Posts: 2
Posted: Tue, 2024-06-11 18:18

I am running on QNX host and trying to check what hardware support I have. When running the platform validator by using
`./qnn-platform-validator --backend all --libVersion --coreVersion --testBackend`

I have setup my environment variables by exporting ADSP_LIBRARY_PATH to point to lib/hexagon-v68/unsigned/
but I am getting the following error and I am not sure how to moev forward:

`PF_VALIDATOR: DEBUG: Calling PlatformValidator->setBackend

PF_VALIDATOR: DEBUG: Calling PlatformValidator->isBackendHardwarePresent
PF_VALIDATOR: DEBUG: Calling PlatformValidator->isBackendAvailable
Backend GPU Prerequisites: Present.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->getLibVersion
Library Version of the backend GPU: OpenCL 2.0 Adreno(TM) 690
PF_VALIDATOR: DEBUG: Calling PlatformValidator->getCoreVersion
Core Version of the backend GPU: Adreno(TM) 690
PF_VALIDATOR: DEBUG: Calling PlatformValidator->backendCheck
PF_VALIDATOR: DEBUG: Building and running a simple Vector addition gpu program.
Unit Test on the backend GPU: Passed.
QNN is supported for backend GPU on the device.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setBackend
PF_VALIDATOR: DEBUG: Calling PlatformValidator->isBackendHardwarePresent
PF_VALIDATOR: DEBUG: Calling PlatformValidator->isBackendAvailable
PF_VALIDATOR: DEBUG: Should be able to access atleast one of libraries from : libc.so
PF_VALIDATOR: DEBUG: dlOpen successfull for library : libc.so
PF_VALIDATOR: DEBUG: Should be able to access atleast one of libraries from : libfastrpc_pmem.so
PF_VALIDATOR: DEBUG: dlOpen successfull for library : libfastrpc_pmem.so
Backend DSP Prerequisites: Present.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->getLibVersion
PF_VALIDATOR: ERROR: The fastRPC library version is not implemented yet.
 
Library version of the backend DSP: Not Found.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->getCoreVersion
Core Version of the backend DSP: Hexagon Architecture V68
PF_VALIDATOR: DEBUG: Calling PlatformValidator->backendCheck
PF_VALIDATOR: DEBUG: Should be able to access atleast one of libraries from : libc.so
PF_VALIDATOR: DEBUG: dlOpen successfull for library : libc.so
PF_VALIDATOR: DEBUG: Should be able to access atleast one of libraries from : libfastrpc_pmem.so
PF_VALIDATOR: DEBUG: dlOpen successfull for library : libfastrpc_pmem.so
PF_VALIDATOR: DEBUG: Starting calculator test
PF_VALIDATOR: DEBUG: Loading sample stub: libQnnHtpV68CalculatorStub.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libQnnHtpV68CalculatorStub.so'.  Setting up pointers.
PF_VALIDATOR: ERROR: -2 . Error while executing the sum function.
PF_VALIDATOR: ERROR: Please use testsig if using unsigned images.
PF_VALIDATOR: ERROR: Also make sure ADSP_LIBRARY_PATH points to directory containing skels.
Unit Test on the backend DSP: Failed.
QNN is NOT supported for backend DSP on the device.
*********** Results Summary ***********
Backend = GPU
{
  Backend Hardware  : Supported
  Backend Libraries : Found
  Library Version   : OpenCL 2.0 Adreno(TM) 690
  Core Version      : Adreno(TM) 690
  Unit Test         : Passed
}
Backend = DSP
{
  Backend Hardware  : Supported
  Backend Libraries : Found
  Library Version   : Not Found
  Core Version      : Hexagon Architecture V68
  Unit Test         : Failed
}`

Have I missed including any specific libraries required? Any help would be much appreciated.
Thanks
  • Up0
  • Down0
sanjjey.a.sanjjey
Join Date: 17 May 22
Posts: 65
Posted: Tue, 2024-06-11 22:47

Hi,
You have to setup both LD_LIBRARY_PATH and ADSP_LIBRARY_PATH.

Thanks

  • Up0
  • Down0
rgopi
Join Date: 11 Jun 24
Posts: 2
Posted: Wed, 2024-06-12 17:25

Thanks for your quick response.
I have set up both ADSP_LIBRARY_PATH and LD_LIBRARY_PATH and added the path containing fastRPC to the PATH variable.
My environment variables are set as
ADSP_LIBRARY_PATH=/ifs/lib:/tmp/data/libs/hexagon-v68/unsigned/:/tmp/data/libs/aarch64-qnx/:/ifs/lib64/:/mnt/etc/images/dsp/

LD_LIBRARY_PATH=
/mnt/etc/images/dsp/:/ifs/lib:/ifs/lib64/:/ifs/usr/lib64:/ifs/lib64/dll:/ifs/lib/:/ifs/usr/lib:/ifs/lib64/dll/pci:/mnt/lib64/:/mnt/usr/lib64:/mnt/lib64/dll:/mnt/lib/:/mnt/usr/lib:/mnt/lib64/dll/pci:/tmp/data/libs/aarch64-qnx:/tmp/data/libs/hexagon-v68/unsigned

I had tried exporting all the paths that contained lib files just to try and see if it helps.

I have two issues here, though 
libfastrpc_pmem.so is found I am seeing this error 

`PF_VALIDATOR: ERROR: The fastRPC library version is not implemented yet.`

The second being

PF_VALIDATOR: ERROR: -2 . Error while executing the sum function.
PF_VALIDATOR: ERROR: Please use testsig if using unsigned images.
PF_VALIDATOR: ERROR: Also make sure ADSP_LIBRARY_PATH points to directory containing skels.

Do I have to add any more lib paths to either $ADSP_LIBRARY_PATH & $LD_LIBRARY_PATH?

Thanks again for your help.
  • Up0
  • Down0
sanjjey.a.sanjjey
Join Date: 17 May 22
Posts: 65
Posted: Wed, 2024-06-19 23:13

Hi,
You also need to push the specific library version of skel and stub libraries.
example: lib/<target>/libQnnHtpV73CalculatorStub.so, lib/hexagon-${DSP_ARCH}/unsigned/libCalculator_skel.so
Make sure to configure the library path and try to run qnn-platform-validator.

Thanks

  • Up0
  • Down0
chuanyang.liu
Join Date: 14 Jun 24
Posts: 5
Posted: Thu, 2024-06-27 00:27

Have you solved this problem? I met the same problem. 

  • 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.