I tried to run Android app with SNPE 1.36 on SDM660.
DSP runtime fall in my apk when SNPE.NeuralNetworkBuilder.build();
try {
final SNPE.NeuralNetworkBuilder builder = new SNPE.NeuralNetworkBuilder(application);
builder.setDebugEnabled(true);builder.setModel(modelstream, modelSize);builder.setCpuFallbackEnabled(true);builder.setRuntimeOrder(DSP); //can't only DSP//builder.setRuntimeOrder(GPU); //can run builder build//builder.setRuntimeOrder(CPU); //can run builder buildbuilder.setOutputLayers("Postprocessor/BatchMultiClassNonMaxSuppression","add"); //MobilenetSSD non-quantizednetwork = builder.build(); //Error. Caused by: java.lang.IllegalArgumentException: None of the selected runtime targets are supported.} catch (IOException e) {e.printStackTrace();}
Benchmark tool was sucess with DSP runtime.
SNPE1.36 document show 660 supported device with DSP(CDSP)
I use "snpe-release.aar" and "platform-vaildator.aar".
I thought needless to set environment(Snapdragon Neural Processing Engine SDK: DSP Runtime Environment (qualcomm.com))
I checked next.
PlatformValidator(PlatformValidatorUtil.Runtime.DSP).RuntimeAvailable(getApplication()) ->false
PlatformValidator(PlatformValidatorUtil.Runtime.DSP).runtimeCheck(getApplication()) ->false
PlatformValidator(PlatformValidatorUtil.Runtime.DSP).coreVersion(getApplication()) -> Hexagon Architecture V60
Are there need some setting?