Hi,
Have you guys tried use libSNPE.so with dlopen?
I have tried load libsnpe-android.so with System.loadLibrary, then isRuntimeSupported always return false on DSP, but it would return true on CPU/GPU.
Then I tried write native API, and open libSNPE.so with dlopen in native code, get the zdl::SNPE::SNPEFactory::isRuntimeAvailable with dlsym, but it can not support DSP too.
Next I tried to write an executable command-line ap to link libSNPE.so, in the main function I called zdl::SNPE::SNPEFactory::isRuntimeAvailable on DSP, it would return true.
So the situation is that, the only way to support DSP is link libSNPE.so into an executable command-line ap, when open libSNPE.so with dlopen, it would not support DSP. May I ask why is that? Is that Qualcomm has done something to protect the usage of libSNPE.so?
Could you guys provide other methods to support DSP in GUI apk?
And does anyone has the same issue with DSP usage?
Thank you.
have u resove this problem