I followed the tutorial to run the calculator example on the cDSP-enabled phone but encountered failure. My device is Xiaomi 13 with a snapdragon 8gen2 processor. Since my phone is not rooted, I placed the relevant executable and libraries in following directory: "data/local/tmp", after that I ran the following code:
adb shell "export LD_LIBRARY_PATH=/data/local/tmp/vendor/lib64/ DSP_LIBRARY_PATH=/data/local/tmp/vendor/lib/rfsa/dsp/sdk; /data/local/tmp/vendor/bin/calculator -r 0 -d 3 -n 1000 -U 1"
the error message is as follows:
Starting calculator test
Attempting to run on unsigned PD on domain 3
Allocate 4000 bytes from ION heap
Creating sequence of numbers from 0 to 999
Compute sum on domain 3
PD is up
Retry attempt unsuccessful. Timing out....
ERROR 0x80000406: Failed to compute sum on domain 3
ERROR 0x80000406: Failed to find max on domain 3
ERROR 0x80000406: Calculator test failed
ERROR 0x80000406: Calculator example failed
In another window, I entered "adb logcat -s adsprps", and the error message is:
--------- beginning of main
04-15 09:24:06.058 22834 22841 V adsprpc : 0106:106: CDSP0: Set loading vote for libcalculator_skel.so
04-15 09:24:06.058 22834 22841 V adsprpc : 0106:106: CDSP0: fastrpc_uthread_create done for tidQ 0x2f65, tidA 22841 (fr/22834/22841), stack 0x00F5DF40 (size 16384), prio 192
04-15 09:24:06.059 22834 22841 V adsprpc : 1b61:106: CDSP0: qurt_vtlb_mmap: unable to get ANON mapping, size 1000
04-15 09:24:06.059 22834 22841 V adsprpc : 1b61:106: CDSP0: ERROR 0xe: handle=0x2eaf2d00, scalar=0x2010100, method ID=2: _stub_method_2 failed
04-15 09:24:06.059 22834 22841 V adsprpc : 0106:106: CDSP0: mmap hdrs failed (0x1000 B) at 0x0
04-15 09:24:06.059 22834 22841 V adsprpc : 0106:106: CDSP0: Error: dlopen_ex failed for libcalculator_skel.so (flags 258)
04-15 09:24:06.059 22834 22841 V adsprpc : 0106:106: CDSP0: Error 0x80000406: open_mod_table_open_dynamic failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_idlver=1.2.3&_dom=cdsp
04-15 09:24:06.059 22834 22841 V adsprpc : 0106:106: CDSP0: Reset loading vote for libcalculator_skel.so
Could someone help me solve this problem?