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
Hi,
You have to setup both LD_LIBRARY_PATH and ADSP_LIBRARY_PATH.
Thanks
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
Do I have to add any more lib paths to either $ADSP_LIBRARY_PATH & $LD_LIBRARY_PATH?
Thanks again for your help.
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
Have you solved this problem? I met the same problem.