Forums - DSP Runtime error due to wrong paths on Android

1 post / 0 new
DSP Runtime error due to wrong paths on Android
eedoza
Join Date: 20 Sep 21
Posts: 2
Posted: Wed, 2021-09-22 00:08

Hi,

I use the SDK to run a DLC file through the java/Android api. Running with CPU or GPU runtimes works but running with the DSP runtime fails:

Quote:
 vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2339: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ 

This happens on the call for NeuralNetworkBuilder(application).setRuntimeOrder(Runtime.DSP).

I tried to set the ADSP_LIBRARY_PATH variable before calling:

Quote:
 Os.setenv("ADSP_LIBRARY_PATH",String.format("\"%s;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp\"", getApplicationInfo().nativeLibraryDir) 

but it didn't apply since it's the same process. How can I set this variable correctly through a java Android studio app? or does it only work when running the app through the ADB? 

Thanks. 

 

  • Up0
  • Down0

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.