tested with snpe 1.49, 1.50, 1.51 on HDK8350. This is probably also a good test for Samsung/Xiaomii/other 888 model owners:
%ADB% root
%ADB% remount
%ADB% shell setenforce 0
%ADB% push %SNPE_ROOT%/bin/aarch64-android-clang6.0/snpe-platform-validator /data/local/tmp/platformValidator/bin/snpe-platform-validator
%ADB% push %SNPE_ROOT%/lib/aarch64-android-clang6.0 /data/local/tmp/platformValidator/lib
%ADB% push %SNPE_ROOT%/lib/dsp /data/local/tmp/platformValidator/dsp
%ADB% shell chmod a+x /data/local/tmp/platformValidator/bin/snpe-platform-validator
%ADB% shell cd /data/local/tmp/platformValidator;ADSP_LIBRARY_PATH=$PWD/lib LD_LIBRARY_PATH=$PWD/lib ./bin/snpe-platform-validator --runtime dsp
%ADB% shell cd /data/local/tmp/platformValidator;ADSP_LIBRARY_PATH=/data/local/tmp/platformValidator/lib LD_LIBRARY_PATH=/data/local/tmp/platformValidator/lib ./bin/snpe-platform-validator --runtime dsp
Result:
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable
PF_VALIDATOR: DEBUG: CPU side validation passed.
PF_VALIDATOR: DEBUG: starting calculator test
PF_VALIDATOR: DEBUG: Loading HTP stub: libcalculator_htp.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator_htp.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.
Runtime DSP Prerequisites: Absent.
What is missing?
got it working after all.
All .so files (.skel and others) had to be in the same bin directory, and LD_LIBRARY_PATH set accordingly.